Configuration
In order to use a Grid.js instance, you need to configure it first. Grid.js accepts a configuration object which can be updated using:
Grid
constructorupdateConfig
method
Grid
constructor#
Simply pass your configuration object to the Grid
constructor to configure the instance. It is possible to update this
config later on.
info
A full list of config object properties is defined in the Config section of this document
updateConfig
#
It is also possible to create an empty Grid.js instance and update the configs later on (and before calling the render
method):
Or to just simply update an existing key in the config object:
tip
The examples directory has an interactive editor that you can use to see the effect config properties live.