No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
A grid is .... | A grid is .... | ||
===Click on Lists=== | |||
====Single-row handling==== | |||
The default for lists is to show a pop-up menu '''or''' perform the default action if itâs the only one. Usually, this is for a âShowâ-action navigating to the object clicked. | |||
If you select âAlways show actionsâ for a ViewModel class in the Designer (i.e. a list), it will be rendered in âselect oneâ mode and with the actions for the current row in the left menu. Clicking on the list/row will NOT show the pop-up menu or perform the default action if itâs the only one. | |||
If the list doesnât have any actions âopted-inâ, the list should also be rendered in âselect oneâ mode. | |||
====Multi-row handling==== | |||
You can turn on multi-select for lists by adding the tag âMultiSelectâ with the value True (no quotes) on the ViewModel class. | |||
#Select the ViewModel class and click on âTV and Attributesâ. | |||
#Add the MultiSelect value to the Value Store. | |||
#Add the Value Store value to the ViewModel. | |||
This will make selecting and deselecting individual rows possible and update the <code>vSelected</code> variable. | |||
You then make actions acting on the <code>vSelected</code> collection in the server action. | |||
=== See also: === | |||
[[Table Grid Column Style]] | [[Table Grid Column Style]] | ||
Revision as of 07:00, 24 May 2023
A table is ...
A grid is ....
Click on Lists
Single-row handling
The default for lists is to show a pop-up menu or perform the default action if itâs the only one. Usually, this is for a âShowâ-action navigating to the object clicked.
If you select âAlways show actionsâ for a ViewModel class in the Designer (i.e. a list), it will be rendered in âselect oneâ mode and with the actions for the current row in the left menu. Clicking on the list/row will NOT show the pop-up menu or perform the default action if itâs the only one.
If the list doesnât have any actions âopted-inâ, the list should also be rendered in âselect oneâ mode.
Multi-row handling
You can turn on multi-select for lists by adding the tag âMultiSelectâ with the value True (no quotes) on the ViewModel class.
- Select the ViewModel class and click on âTV and Attributesâ.
- Add the MultiSelect value to the Value Store.
- Add the Value Store value to the ViewModel.
This will make selecting and deselecting individual rows possible and update the vSelected
variable.
You then make actions acting on the vSelected
collection in the server action.