I can’t find how to set a master view using an interaction. I can set an adaptive view, but not a master view.
My use case: I have a toolbar that has some generic button, but also some buttons that apply only depending on how many items are selected. For example ‘New’ works all the time. ‘Edit’ only when one single item is selected. ‘Delete’ works when one or more items are selected.
So my toolbar shall look this:
- no selection:
- [New]
- single selection:
- [New] [Edit] [Delete]
- multi selection:
- [New] [Delete]
Previously I have used a dynamic panel for the three different states with the huge drawback that buttons like [New] appear three times in three different states as independent copies. So I need to keep the interactions on these buttons on all three states in sync.
A master view would be way more elegant here. Especially as I can raise events from the buttons on the toolbar that I can use very cleanly, where I use the toolbar.
However I am stuck now as I do not find a way how to set the master view from an interaction once the selection has changed. As I can set an adaptive view from an interaction it would be pretty inconsistent to not be able to set a master view from an interaction. Hopefully I am just not finding it.