Major
Detail
Detail
Currently the width is set to 28px globally for all themes in the application configuration. The width should be controllable per theme.
New requirement
Width of the "second" (open detail dialog) column also to be configured via the same parameter.
Implementation
The theme variable SELECTION_COLUMN_WIDTH allows 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 table header
If the table has multiselection enabled, then 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 (usually represented by a dash in the box): A real, non-empty subset of rows is selected.
- Box with checkmark: All rows are selected.
The appearance of the checkbox depends on the browser and may be displayed differently.
When the user (de)selects the box, one of the following three actions is performed:
- Empty box: The box is checked, all rows are selected.
- Unchecked box: the box is checked, all rows are selected.
- Box with checkmark: The box becomes empty, none of the rows are selected.
Test
- Change the theme variable SELECTION_COLUMN_WIDTH to 50px and check if the width was 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 enable multiselection for the grid. The checkbox in the selection column should be used as described in the chapter Implementation.