PreferencesTabs¶
Overview¶
The tabs for the PreferencesDialog. Activating a tab will select a PreferencesTabPanel to be displayed to the user. The actual tabs are implemented as radio buttons, styled to look like flat like a set of tabs.
@author Jesse Greenberg (PhET Interactive Simulations)
Class PreferencesTabs¶
Constructor¶
new PreferencesTabs( supportedTabs : PreferencesType[], selectedPanelProperty : TProperty<PreferencesType>, providedOptions : PreferencesTabsOptions )¶
Instance Methods¶
getTabVisibleProperty( preferencesType : PreferencesType ) : TReadOnlyProperty<boolean>¶
Returns the visibleProperty for the Tab associated with the PreferencesType. PreferencesTabs need to be hidden if the Tab becomes invisible (mostly needed for PhET-iO).
focusSelectedTab()¶
Move focus to the selected tab. Useful when the Preferences dialog is opened.
Type PreferencesTabsOptions¶
HBoxOptions & PickRequired<HBoxOptions, "tandem">
Source Code¶
See the source for PreferencesTabs.ts in the joist repository.