28 lines
620 B
TypeScript
28 lines
620 B
TypeScript
|
|
import React from "react";
|
||
|
|
import BaseWidget, { IWidgetProps, IWidgetState } from "./BaseWidget";
|
||
|
|
import { WidgetType } from "../constants/WidgetConstants";
|
||
|
|
import TextComponent from "../editorComponents/TextComponent";
|
||
|
|
|
||
|
|
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[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export default TableWidget;
|