cell.registry
TableCellRegistry : d2/sdk/controls/table/cells/cell.registry
Register a new cell renderer, to be used for a specified column in a TableView or against a particular data type.
Extends: Object
- TableCellRegistry :
d2/sdk/controls/table/cells/cell.registry
TableCellRegistry.registerByColumnKey(columnKey, handlerClass) ⇒ void
Register a cell renderer by column key, i.e. an attribute name
Kind: static method of TableCellRegistry
Param | Type | Description |
---|---|---|
columnKey | string | Attribute name to bind this renderer to |
handlerClass | TemplatedCellView | View class implementing the renderer |
TableCellRegistry.registerByDataType(dataType, handlerClass) ⇒ void
Register a renderer by data type
Kind: static method of TableCellRegistry
Param | Type | Description |
---|---|---|
dataType | number | A non-zero number to represent a data type. Pre-declared types are |
handlerClass | TemplatedCellView | View class implementing the renderer |