PromucFlow_constructor/app/client/src/widgets/TableWidget.tsx

31 lines
742 B
TypeScript
Raw Normal View History

2019-09-12 08:11:25 +00:00
import React from "react";
import BaseWidget, { IWidgetProps, IWidgetState } from "./BaseWidget";
import { WidgetType } from "../constants/WidgetConstants";
2019-09-12 12:19:46 +00:00
import { ActionPayload } from '../constants/ActionConstants';
2019-09-12 08:11:25 +00:00
class TableWidget extends BaseWidget<TableWidgetProps, IWidgetState> {
getPageView() {
return (
<div/>
);
}
getWidgetType(): WidgetType {
return "TABLE_WIDGET";
}
}
export type PaginationType = "PAGES" | "INFINITE_SCROLL"
export interface TableWidgetProps extends IWidgetProps {
pageKey?: string;
label: string
tableData?: object[]
2019-09-12 12:19:46 +00:00
onPageChange?: ActionPayload[]
onRowSelected?: ActionPayload[]
onColumnActionClick?: Record<string, ActionPayload[]>
2019-09-12 08:11:25 +00:00
}
export default TableWidget;