render

renders the specified item or the whole component

void render(id id,object data,string type);
ididthe item id
dataobjectthe object with data for the rendered item
typestringthe type of the operation: 'update', 'add', 'delete', 'move'

Example

$$("view").render(id,data,type);

Related samples

Details

When no parameters are specified, the method renders the whole view.

Types of the operation:

  • update - replaces the existing HTML with the new one
  • add - place a new HTML at the required position
  • delete - removes the related HTML
  • move - simulates add-delete sequence
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.
If you have not checked yet, be sure to visit site of our main product Webix lightweight js framework and page of tree visualization javascript product.