Designer
Designer
class Designer {
menu: ToolbarTopMenu;
constructor(options: DesignerOptions);
setDataSource(dataSource: DataSourceTreeItemData[]);
loadLayout(layout: ILayout);
toJSON(): ILayout;
}
DesignerOptions
interface DesignerOptions {
element: HTMLDivElement;
layout?: ILayout;
dataSource?: DataSourceTreeItemData[];
onSaveButtonClick?: (layout: ILayout) => void;
}
DataSourceTreeItemData
interface DataSourceTreeItemData {
label: string;
field: string;
children?: DataSourceTreeItemData[];
}