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

void define(string property,any value);


propertystringthe property name or a object with properties that need redefining
valueanythe new property value


// redefines the width of the list
$$("mylist").define("width", 300);
// changes the label of the button
$$("button1").define("label", "New value");
// changes multiple properties at once
    label:"New label"

Related samples


The component should be refreshed to reflect the changes.

Redefining properties via "config" object

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

$$("myList").config.width = 300:
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix js framework and page of javascript image slider product.