sandstone/ Wizard Panels
Provides a Sandstone styled panels component for stepping through a process.
import WizardPanels from '@enact/sandstone/WizardPanels';Members
WizardPanelsComponent
A WizardPanels that can step through different panels. Expects WizardPanel as children.
import WizardPanels from '@enact/sandstone/WizardPanels';Statics
A shortcut to access sandstone/WizardPanels.Panel
Properties
Called when the back button is pressed.
If
ev.preventDefaultis called,WizardPanelswill not process the event further. If it is not called, the index of the panel will be decremented unlessnoPrevButtonis set.
PanelComponent
Panel that sets the children, footer, subtitle, and title for WizardPanels.
import {Panel} from '@enact/sandstone/WizardPanels';Properties
The button to use in place of the standard prev button.
This prop accepts a component (e.g.
Button), a component instance or a boolean value.If
false, the button will not show. If set to a component, ortrue, the button will show. This will override the setting of prevButtonVisibility.Example:
prevButton={<Button icon="closex" aria-label="Back">Back</Button>}The button to use in place of the standard next button.
This prop accepts a component (e.g.
Button), a component instance or a boolean value.If
false, the button will not show. If set to a component, ortrue, the button will show. This will override the setting of nextButtonVisibility.Example:
nextButton={<Button icon="closex" aria-label="Quit">Close</Button>}
WizardPanelsBaseComponent
A WizardPanels that has steps with corresponding panels.
import {WizardPanelsBase} from '@enact/sandstone/WizardPanels';Properties
The "aria-label" for the Panel.
By default, the panel will be labeled by its Header. When
aria-labelis set, it will be used instead to provide an accessibility label for the panel.Obtains a reference to the root node.
The current step.
This is 1-based, not 0-based; as in the first step is
1. If omitted, this will equal the currently selected panel.Specifies when and how to show
nextButtonon WizardPanel.'auto'will display thenextButtonon everyWizardPanel.Panelexcept the last'always'will always display thenextButton'never'will always hide thenextButton
Note, children values will override the generalized parent visibility settings. In this case, a customized
nextButtonon WizardPanel.Panel will take precedence over thenextButtonVisibilityvalue.Default: 'auto'Disables panel transitions.
Omits the steps component.
Omits the subtitle area.
Default: falseCalled when the index value is changed.
Called when the next button is clicked in WizardPanel.
Calling
preventDefaulton the passed event will prevent advancing to the next panel.Called when previous button is clicked in WizardPanel.
Calling
preventDefaulton the passed event will prevent navigation to the previous panel.Called when a transition completes.
Called before a transition begins.
Specifies when and how to show
prevButtonon WizardPanel.'auto'will display theprevButtonon everyWizardPanel.Panelexcept the first'always'will always display theprevButton'never'will always hide theprevButton
Note, children values will override the generalized parent visibility settings. In this case, if user provides a customized
prevButtonon WizardPanel.Panel will take precedence over theprevButtonVisibilityvalue.Default: 'auto'The subtitle to display.
If noSubtitle is
true, this prop is ignored.The title to display.
The total number of steps.
If omitted, this will equal the total number of Panels.