new module:ct-grid /decorator /Container Export Decorator(decorator Config)
Decorator ContainerExportDecorator
enable exporting of container
contents to CSV file Via eventhub
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
decoratorConfig |
object | |||
config.exportHiddenColumns |
boolean | |||
config.menuText |
string |
<optional> |
i18n("ct.grid.export.csv.menu.text") | |
decoratorConfig.excludedColumns |
string |
<optional> |
Methods
export CSV()
Initiates the grid data file download in CSV format.
export Grid()
Initiates the grid data file download in CSV format.
export XLSX()
Initiates the grid data file download in XLSX format.
on Row Data Unavailable()
Disable the menu group representing export functionality when attempted communication with the server fails.
- Implements:
- See:
on Size Changed()
Disable and enable the export functionality when the grid is empty and non-empty respectively.
- Implements:
- See:
set Grid View(grid View)
Gets the gridView to determine row count of grid and componentAdaptor.
Parameters:
Name | Type | Description |
---|---|---|
gridView |
module:ct-grid |
The grid to be exported via menu item. |