redefines a single configuration property (or a hash of properties)

void define(string property,any value);


propertystringthe property name or a hash of properties that need redefining
valueanythe new property value


// redefines the width of the datatable
$$("mygrid").define("width", 300);

Related samples


The component should be refreshed to reflect the changes.

Redefining "config" object

You can use the config property to change the desired configuration option, e.g. a column property:

$$("myGrid").config.columns[0].width = 200;
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web ui framework and page of javascript data grid product.