d3-metatable
A table view component for d3js designed for JSON objects of varying schemas.
Example
container dataprops
API
;
The options
param should be an object and is optional.
property | default | description |
---|---|---|
newCol | true | Adds a link to add a new column to a table. |
deleteCol | true | Adds a link to rename a column in a table. |
renameCol | true | Adds a link to delete a column in a table. |
A behavior that expects to be called with a selection an array of objects of data. Emits events:
change
: a row is changed. returns the object and the indexrowfocus
: a row is focused. returns the object and the indexrenameprompt
: Column is about to be renamed. Useful for passing in a custom workflow for submitting a value that overrides the default. usage:
;
deleteprompt
: Column is about to be deleted. Useful for passing in a custom workflow for delete confirmation to override the default one. usage:
;