DataTable events and methods

The DataTable component provides many event callbacks and methods with respect to each feature. The following table lists out all the table event callbacks with name, parameter details, and description:

Name Parameters Description
onRowClick
  • event.originalEvent: Browser event
  • event.data: Selected data
Callback to invoke when a row is clicked.
onRowSelect
  • event.originalEvent: Browser event
  • event.data: Selected data
  • event.type: Type of selection, valid values are row, radiobutton, and checkbox
Callback to invoke when a row is selected.
onRowUnselect
  • event.originalEvent: Browser event
  • event.data: Unselected data
  • event.type: Type of unselection, valid values are row and checkbox
Callback to invoke ...

Get Angular UI Development with PrimeNG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.