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();

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