Skip to content

render

renders the specified item or the whole component

function render(
// the item id
id: id,
// the object with data for the rendered item
data: object,
// the type of the operation: "'update'", "'add'", "'delete'", "'move'" type
operation: string
): void
dgrid.render();

also check the next samples:

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

Operation types:

  • 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