-
- Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
- Example in 'usage'
const nodes = [ { id: '0', name: 'Shopping List', deadline: new Date(2020, 1, 15), type: 'TASK', isComplete: true, nodes: 3, // The type of 'nodes' is TableNode, not Number。 }, ];
- Columns, if you want to add a generic type to it.Used to represent the type of 'item'
const COLUMNS: Column[] = [ { label: "Task", renderCell: (item) => item.name }, { label: "Deadline", renderCell: (item) => item.deadline.toLocaleDateString("en-US", { year: "numeric", month: "2-digit", day: "2-digit" }) }, { label: "Type", renderCell: (item) => item.type }, { label: "Complete", renderCell: (item) => item.isComplete.toString() }, { label: "Tasks", renderCell: (item) => item.nodes } ];
PeterKampete
Metadata
Metadata
Assignees
Labels
No labels