define

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

void define(string| WebixViewConfig property, [any value] );
property
string| WebixViewConfigthe property name or a object with properties that need redefining value
anythe new property value (has to be specified when defining the property as a string)

Example

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

Related samples

Details

The component should be refreshed to reflect the changes.

Redefining properties via "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;
$$("myGrid").refreshColumns();
See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    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.