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' or 'branch'

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