X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=sdnr%2Fwt%2Fodlux%2Fframework%2Fsrc%2Fviews%2Ftest.tsx;h=763b79a1fcb7bcdf2edf3ca8ad30f0c5cfbe1ea5;hb=889c7fbc0f78eadc302e8849ea7e6cad795e0d6e;hp=68b189340fd92c4d68c810514f01b32aa8a1bd1c;hpb=4eed58ba1a434261510c996316d2d201a40eb760;p=ccsdk%2Ffeatures.git diff --git a/sdnr/wt/odlux/framework/src/views/test.tsx b/sdnr/wt/odlux/framework/src/views/test.tsx index 68b189340..763b79a1f 100644 --- a/sdnr/wt/odlux/framework/src/views/test.tsx +++ b/sdnr/wt/odlux/framework/src/views/test.tsx @@ -27,7 +27,7 @@ import Typography from '@material-ui/core/Typography'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import { MaterialTable, MaterialTableCtorType, ColumnType } from '../components/material-table'; -import { TreeView, ITreeItem, TreeViewCtorType } from '../components/material-ui/treeView'; +import { TreeView, TreeItem, TreeViewCtorType } from '../components/material-ui/treeView'; import { SvgIconProps } from '@material-ui/core/SvgIcon'; const styles = (theme: Theme) => createStyles({ @@ -814,30 +814,25 @@ const components = { 'counter': 'demoApp.counter' }; -class TreeDemoItem implements ITreeItem { - title: string; - children?: TreeDemoItem[]; - disabled?: boolean; - icon?: React.ComponentType; -} +type TreeDemoItem = TreeItem; const treeData: TreeDemoItem[] = [ { - title: "Erste Ebene", children: [ + content: "Erste Ebene", children: [ { - title: "Zweite Ebene", children: [ - { title: "Dritte Ebene" }, + content: "Zweite Ebene", children: [ + { content: "Dritte Ebene" }, ] }, - { title: "Zweite Ebene 2" }, + { content: "Zweite Ebene 2" }, ] }, - { title: "Erste Ebene 3" }, + { content: "Erste Ebene 3" }, ]; const SampleDataMaterialTable = MaterialTable as MaterialTableCtorType; -const SampleTree = TreeView as any as TreeViewCtorType; +const SampleTree = TreeView as any as TreeViewCtorType; const TestComponent = (props: WithComponents & WithStyles) => { @@ -867,11 +862,11 @@ const TestComponent = (props: WithComponents & WithStylesTree Demo - + - ) + ); }; export const Test = withComponents(components)(withStyles(styles)(TestComponent));