PreferencesPanelSection¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/joist/blob/main/js/preferences/PreferencesPanelSection.ts for the most up-to-date information.
Overview¶
A section of content in a PreferencesPanel of the PreferencseDialog. Handles layout for the title of the section and its content. The preferences panels are responsible for layout of multiple PreferencesTabPanelSections.
@author Jesse Greenberg (PhET Interactive Simulations)
Class PreferencesPanelSection¶
Constructor¶
new PreferencesPanelSection( providedOptions? : PreferencesPanelSectionOptions )¶
Instance Methods¶
Type PreferencesPanelSectionOptions¶
- titleNode?: Node | null
if provided, will be the title for the section and content will be nested under the titleNode indented with contentLeftMargin - contentNode?: Node | null
if provided, the content for the section which will be nested under the titleNode - contentNodeOptions?: StrictOmit<NodeOptions, "children">
- contentLeftMargin?: number
indentation for the contentNode (if provided) for layout as it is nested under the titleNode - & StrictOmit<VBoxOptions, "children">
Source Code¶
See the source for PreferencesPanelSection.ts in the joist repository.