customize

redefines the "item" property

void customize(object obj);
objobjectthe object with new "item" settings

Example

myDiagram = webix.ui({
    view:"diagram",
    // ...
    item: {
      type: "plus"
    }
});
 
myDiagram.customize({ type: "rrect" });
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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.