This is a global object holding the following kinds of configuration
Here you will find general information about configuring NatTable and the concepts involved.
This is a global object holding the following kinds of configuration
DisplayMode is a tag applied to a cell to identify the state the cell is in. Currently the following display modes are supported:
Cell labels are a mechanism to tie configuration to specific cells. A cell label is a string/label which is attached to a cell.
For example,
Following the overall design convention, Layers can add labels to cells. In order to attach a label to a cell(s) you need to implement the IConfigLabelAccumulator interface. The IConfigLabelAccumulator.accumulateConfigLabels() is called on each layer. Every layer can add its labels to the LabelStack.
The most common use cases are available out of the box, including but not limited to:
The name of the region the cell is in is added as a default label. For example, all cells in the body region have the label BODY by default.
Configuration information is contributed by individual layers. When a layer is added to the stack it contributes relevant configuration via the AbstractLayer.addConfiguartion() method. For example, when the SelectionLayer is added it contributes selection styling via the DefaultSelectionLayerConfiguration.
In order to contribute configuration information you need to:
When the grid initializes it invokes your configuration object. At this point you can make entries in the IConfigRegistry and the UiBindingRegistry. These are global objects held by NatTable.