redefines a single configuration property (or a object with properties)
property | string| WebixViewConfig | the property name or a object with properties that need redefining |
value | any | the new property value (has to be specified when defining the property as a string) |
// redefines the width of the list
$$("mylist").define("width", 300);
$$("mylist").resize();
// changes the label of the button
$$("button1").define("label", "New value");
$$("button1").refresh();
// changes multiple properties at once
$$("text2").define({
value:"123",
label:"New label"
});
$$("text2").refresh();
The component should be refreshed to reflect the changes.
You can also use the config property to change the desired configuration option:
$$("myList").config.width = 300:
$$("myList").resize();