Hi,
I wish to put all primary action buttons together in deck view. I don’t mean grouped action. when single button is pressed , inside buttons should be expanded. How to achieve it ?
You may want to use a switch button for expanding/collapsing.
make a button for switching “yes/no“
set your behavior on the other buttons according to this yes/no value.
Example:
create column [yn_display"] on a table
switch button “display” > set the column value > set expression NOT([yn_display])
icon: “minus”
button 1: behavior condition: [yn_display]
button 2: behavior condition: [yn_display]
(and so on…)
Please note this works for a single row.
For your specific case, you will need to use another table and use an action such as “execute on a set of rows”, with an ANY(tableButton[id]) or something like that, to allow appearance on a list-view such as the one you are sharing.
There is a new concept of an Icon Tray available in the Preview of the new Mobile Framework. It will collapse and expand the actions listed as Primary View actions. Th first image below is the collapsed state…the second image is the expanded state.
Is this the kind of function you are looking for?
If you are trying to recreate this WITHOUT the Preview feature, I don’t think it is possible. You would need to the ability to show/hide the actions and then an action to toggle that showing and hiding. This requires the ability to set a value in a table.. But primary actions cannot be row-level actions.
You could place the toggle button somewhere else…for example, in your Deck View, one of the actions that each row shows in the action bar could be this toggle button.
I hope this helps!
Ican Tray Expansion Feature in the NEW Mobile Framework feature
Hi, that’s what i’m looking for too, A primary button in deck view.