CommonBoundActionBar: Filtering actions by active tab in CommonTabList

Hi, I’m using CommonBoundActionBar to collect actions from a panel. My issue is that if I have a CommonTabList, the action bar gathers all tagged actions from all tabs simultaneously, even from those that are currently hidden.

Ideally, I want actions to appear in the bar only when their corresponding tab is active and disappear when the tab is switched. Is there a built-in way to filter this? Additionally, is it possible to keep an action listed in the CommonBoundActionBar but set it to a “disabled” (inactive) state instead of hiding it completely?

[Attachment Removed]

Hi,

The CommonBoundActionBar should filter out deactivated widgets, so one option here would be to use an ActivatableWidgetSwitcher as your tab switcher and make its pages ActivatableWidgets. That switcher will automatically manage activating/deactivating the pages as it changes index, so that would update the bound action bar accordingly to add/remove actions. If you wanted to instead keep them in the bar but show them as disabled, you could instead keep everything in there as it currently is and handle the deactivation via the ActionButtonClass that you specify. You might need your own tracking to decide which buttons to disable, but that could probably be handled as part of an OnTabSelected delegate. My approach there would be to make an ActionButtonClass that is disabled by default, then have the tab list enable the active tab’s buttons when the index changes.

Best,

Cody

[Attachment Removed]