Skip to content

define

redefines a single configuration property (or an object with properties)

function define(
// object the property name or an object with properties that need redefining
property: string|,
// the new property value (has to be specified when defining the property as a string)
value?: any
): void
// redefines the width of the grid
mygrid.define("width", 300);
mygrid.resize();

also check the next samples:

The component should be refreshed to reflect the changes.

Redefining properties via “config” object

Section titled “Redefining properties via “config” object”

You can also use the config property to change the desired configuration option:

mygrid.config.width = 300:
mygrid.resize();