# Conflicts: # package.json # src/actions/pageActions.tsx # src/actions/widgetCardsPaneActions.tsx # src/api/Api.tsx # src/api/ApiRequests.tsx # src/api/ApiResponses.tsx # src/api/WidgetCardsPaneApi.tsx # src/constants/ActionConstants.tsx # src/constants/ApiConstants.tsx # src/normalizers/CanvasWidgetsNormalizer.tsx # src/reducers/entityReducers/canvasWidgetsReducer.tsx # src/reducers/entityReducers/index.tsx # src/reducers/entityReducers/widgetConfigReducer.tsx.tsx # src/reducers/index.tsx # src/reducers/uiReducers/canvasReducer.tsx # src/reducers/uiReducers/editorReducer.tsx # src/reducers/uiReducers/widgetCardsPaneReducer.tsx # src/sagas/PageSagas.tsx # src/sagas/WidgetCardsPaneSagas.tsx # src/sagas/index.tsx # src/utils/AppsmithUtils.tsx # src/widgets/AlertWidget.tsx # src/widgets/ButtonWidget.tsx # src/widgets/CheckboxWidget.tsx # src/widgets/DatePickerWidget.tsx # src/widgets/DropdownWidget.tsx # src/widgets/RadioGroupWidget.tsx # src/widgets/TableWidget.tsx
28 lines
730 B
TypeScript
28 lines
730 B
TypeScript
import React from "react";
|
|
import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget";
|
|
import { WidgetType } from "../constants/WidgetConstants";
|
|
import { ActionPayload } from "../constants/ActionConstants";
|
|
|
|
class TableWidget extends BaseWidget<TableWidgetProps, WidgetState> {
|
|
getPageView() {
|
|
return <div />;
|
|
}
|
|
|
|
getWidgetType(): WidgetType {
|
|
return "TABLE_WIDGET";
|
|
}
|
|
}
|
|
|
|
export type PaginationType = "PAGES" | "INFINITE_SCROLL";
|
|
|
|
export interface TableWidgetProps extends WidgetProps {
|
|
pageKey?: string;
|
|
label: string;
|
|
tableData?: object[];
|
|
onPageChange?: ActionPayload[];
|
|
onRowSelected?: ActionPayload[];
|
|
onColumnActionClick?: Record<string, ActionPayload[]>;
|
|
}
|
|
|
|
export default TableWidget;
|