Major
Detail
Major
Detail
Currently, the width in the application configuration is globally set to 28px for all themes. It should be possible to control the width per theme.
New requirement
Configure the width of the "second" (open detail dialog) column using the same parameter.
Implementation
The theme variable SELECTION_COLUMN_WIDTH enables the theme-dependent configuration of the width of the selection column and GRID_EDIT_WIDTH the width of the column for the detail dialog.
Tristate checkbox in the table header
If the table has multi-selection activated, a tristate checkbox is rendered in the header cell of the selection column with which it is possible to select or deselect all rows.
The checkbox has the following three states:
- Empty box: The selection is empty.
- Box with undefined status (normally represented by a dash in the box): A real, non-empty subset of rows is selected.
- Box with check mark: All rows are selected.
The appearance of the checkbox depends on the browser and can be displayed differently.
When the user (de)selects the checkbox, one of the following three actions is performed:
- Empty box: The box is checked, all rows are selected.
- Box in undefined state: The box is checked, all rows are selected.
- Box with checkmark: The box is empty, none of the rows are selected.
Test
- Change the theme variable SELECTION_COLUMN_WIDTH to 50px and check whether the width has been adjusted (also in table select dialogs, e.g. the collection attribute in demo A's).
- Generate demo data and navigate to the Tables and Trees > Grid view and activate multi-selection for the grid. The checkbox in the selection column should be used as described in the chapter Implementation.