Skip to main content

foundation-entity-management.entitymanagement.enablecsvexport

Home > @genesislcap/foundation-entity-management > EntityManagement > enableCsvExport

EntityManagement.enableCsvExport property

Enabling this option will enable a download button in the top-right of the header which will export the data to a csv file when clicked.

Signature:

enableCsvExport: {
buttonName?: string;
fileName?: string;
} | null;

Remarks

The default button is Export and the filename export.csv. You can optionally configure these values via this property to override them

Example 1

Enabling the feature and using the default configuration

<foundation-entity-manager
:enableCsvExport="${() => ({})}"
>
</foundation-entity-manager>

Example 2

Enabling the feature and overriding the default values

<foundation-entity-manager
:enableCsvExport="${() => ({buttonName: 'Download', fileName: 'counterparty-export'})}"
>
</foundation-entity-manager>