Overview

This action allows you to download the selected rows of a DataTable to Excel. If no rows are selected, the entire contents of the DataTable are downloaded. Valid page components for this action are:

  • ActionButton – use the onClick property.

Properties

PropertyDescription
actionSet this to “downloadSelectedAsCSV” to use this action.
nameThe name of the DataTable whose content will be downloaded.

Example

Add the following to your component:

"onClick": {
  "action": "downloadSelectedAsCSV", 
  "name": "ITEMS"
}