customize

redefines the "item" property

void customize(object obj);

Parameters

objobjectthe object with new "item" settings

Example

myDiagram = webix.ui({
    view:"diagram",
    // ...
    item: {
      type: "plus"
    }
});
 
myDiagram.customize({ type: "action" });
myDiagram.refresh();

Details

Remember, the method does not force repainting of the component. That is why after calling the customize() method you should call the refresh or render method methods to apply the newly-specified value

To change any component property (not the "item" one) - use define method.

See also
Back to top