I'm using a ToggleButtonBar with a ViewStack in the classic sense, where
ToggleButtonBar.dataProvider = theViewStack.
 
I want to configure what buttons are available to click based on runtime
conditions and cannot find any property that makes this possible.
 
What I'd like to do is provide a filterFunction on the
ToggleButtonBar.dataProvider but unlike most dataProvider properties in
various list-based constructs, ToggleButtonBar.dataProvider is not
stored as a filterable collection.
 
My kludge is to call toggleButtonBar.removeItemAt(n) based on the
conditions after it's been constructed. It works, but there must be a
more elegant way to filter the ButtonBar data provider so various
runtime conditions will control which ViewStack views are available to
the user.
 
Thanks for your suggestions.
 
Erik
 
Erik J. Thomas | intuit | Email Marketing | Staff Engineer |
650-944-2602 | Boulder, CO
 

Reply via email to