jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
561 stars 121 forks source link

Configure export options for the Grid export action jmix-framework/jmix#3497 #3665

Closed KremnevDmitry closed 4 weeks ago

KremnevDmitry commented 1 month ago

See: #3497

Implementation details

Previous implementation

All options are visible if it possible: image

New implementation

Application property

A new application property has been created: jmix.gridexport.default-export-modes.

Screenshot 2024-08-30 at 16 15 08

The property defined a default set of options for export modes for ExportAction. Screenshot 2024-08-30 at 16 15 15

The order of the options in the application property is taken into account. Options will be added in the order they are added using property:

Screenshot 2024-08-30 at 16 16 59

Screenshot 2024-08-30 at 16 17 05

The default value of the property remains the same as in the previous implementation: ALL_ROWS, CURRENT_PAGE, SELECTED_ROWS

New API

Provides the ability to set available export modes for each exportAction separately. Modes set via API have priority over modes set by default using application.properties.

Available modes can be set using the XML markup or the Jmix UI Component Inspector: image