define

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

void define(string property,any value);

Parameters

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

Example

// redefines the width of the list
$$("diagram1").define("width", 500);
$$("diagram1").refresh();

Related samples

Details

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:
$$("myList").resize();
See also
Back to top