diff --git a/src/components/content/examples/collection/data/projectData.json b/src/components/content/examples/collection/data/projectData.json new file mode 100644 index 0000000..8cb5c44 --- /dev/null +++ b/src/components/content/examples/collection/data/projectData.json @@ -0,0 +1,195 @@ +[ + { + "id": "t1", + "name": "Task 1", + "resource": "Larry", + "start": "1/1/2014", + "end": "10/1/2014", + "children": [ + { + "id": "t1:1", + "name": "Task 1-1", + "resource": "Larry", + "start": "1/1/2014", + "end": "3/1/2014", + "children": [ + { + "id": "t1:1:1", + "name": "Task 1-1-1", + "resource": "Larry", + "start": "1/1/2014", + "end": "2/1/2014" + }, + { + "id": "t1:1:2", + "name": "Task 1-1-2", + "resource": "Larry", + "start": "2/1/2014", + "end": "3/1/2014" + } + ] + }, + { + "id": "t1:2", + "name": "Task 1-2", + "resource": "Larry", + "start": "3/1/2014", + "end": "6/1/2014", + "children": [ + { + "id": "t1:2:1", + "name": "Task 1-2-1", + "resource": "Larry", + "start": "3/1/2014", + "end": "5/1/2014" + }, + { + "id": "t1:2:2", + "name": "Task 1-2-2", + "resource": "Larry", + "start": "5/1/2014", + "end": "6/1/2014" + } + ] + }, + { + "id": "t1:3", + "name": "Task 1-3", + "resource": "Larry", + "start": "6/1/2014", + "end": "8/1/2014" + }, + { + "id": "t1:4", + "name": "Task 1-4", + "resource": "Larry", + "start": "8/1/2014", + "end": "10/1/2014" + } + ] + }, + { + "id": "t2", + "name": "Task 2", + "resource": "Larry", + "start": "4/1/2014", + "end": "12/1/2014", + "children": [ + { + "id": "t2:1", + "name": "Task 2-1", + "resource": "Larry", + "start": "4/1/2014", + "end": "5/1/2014" + }, + { + "id": "t2:2", + "name": "Task 2-2", + "resource": "Larry", + "start": "5/1/2014", + "end": "8/1/2014", + "children": [ + { + "id": "t2:2:1", + "name": "Task 2-2-1", + "resource": "Larry", + "start": "5/1/2014", + "end": "7/1/2014" + }, + { + "id": "t2:2:2", + "name": "Task 2-2-2", + "resource": "Larry", + "start": "7/1/2014", + "end": "8/1/2014" + } + ] + }, + { + "id": "t2:3", + "name": "Task 2-3", + "resource": "Larry", + "start": "8/1/2014", + "end": "12/1/2014", + "children": [ + { + "id": "t2:3:1", + "name": "Task 2-3-1", + "resource": "Larry", + "start": "8/1/2014", + "end": "11/1/2014", + "children": [ + { + "id": "t2:3:1:1", + "name": "Task 2-3-1-1", + "resource": "Larry", + "start": "8/1/2014", + "end": "9/1/2014" + }, + { + "id": "t2:3:1:2", + "name": "Task 2-3-1-2", + "resource": "Larry", + "start": "9/1/2014", + "end": "11/1/2014" + } + ] + }, + { + "id": "t2:3:2", + "name": "Task 2-3-2", + "resource": "Larry", + "start": "11/1/2014", + "end": "12/1/2014" + } + ] + } + ] + }, + { + "id": "t3", + "name": "Task 3", + "resource": "Larry", + "start": "5/1/2014", + "end": "11/1/2014", + "children": [ + { + "id": "t3:1", + "name": "Task 3-1", + "resource": "Larry", + "start": "5/1/2014", + "end": "8/1/2014", + "children": [ + { + "id": "t3:1:1", + "name": "Task 3-1-1", + "resource": "Larry", + "start": "5/1/2014", + "end": "6/1/2014" + }, + { + "id": "t3:1:2", + "name": "Task 3-1-2", + "resource": "Larry", + "start": "6/1/2014", + "end": "8/1/2014" + } + ] + }, + { + "id": "t3:2", + "name": "Task 3-2", + "resource": "Larry", + "start": "8/1/2014", + "end": "11/1/2014" + } + ] + }, + { + "id": "t4", + "name": "Task 4", + "resource": "Larry", + "start": "11/1/2014", + "end": "12/1/2014" + } +] diff --git a/src/components/content/examples/collection/index.tsx b/src/components/content/examples/collection/index.tsx index 8ca03b3..34c67ee 100644 --- a/src/components/content/examples/collection/index.tsx +++ b/src/components/content/examples/collection/index.tsx @@ -3,6 +3,7 @@ import GroupByTable from "./group-by-table"; import Treeview from "./treeview"; import ListView from "./listview"; import DataGrid from "./datagrid"; +import { RowExpanderTable } from "./rowexpander-table"; import "preact"; const Collection = () => { @@ -29,6 +30,10 @@ const Collection = () => {