Skip to content
Enact

limestone/WizardPanels

Provides a Limestone styled panels component for stepping through a process.

A WizardPanels that can step through different panels. Expects limestone/WizardPanelslimestone/WizardPanels.Panel as children.

Extends: limestone/WizardPanelslimestone/WizardPanels.WizardPanelsBase
Wrapped with: ui/Changeableui/Changeable.Changeable

Properties

Called when the back button is pressed.

If ev.preventDefault is called, WizardPanels will not process the event further. If it is not called, the index of the panel will be decremented unless noPrevButton is set.

Panel that sets the children, footer, subtitle, and title for limestone/WizardPanelslimestone/WizardPanels.WizardPanels.

Properties
BooleanComponent

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, or true, the button will show. This will override the setting of limestone/WizardPanelslimestone/WizardPanels.WizardPanelsBase.nextButtonVisibility.

Example:

nextButton={<Button icon="closex" aria-label="Quit">Close</Button>}

BooleanComponent

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, or true, the button will show. This will override the setting of limestone/WizardPanelslimestone/WizardPanels.WizardPanelsBase.prevButtonVisibility.

Example:

prevButton={<Button icon="closex" aria-label="Back">Back</Button>}

A WizardPanels that has steps with corresponding panels.

Properties

The "aria-label" for the Panel.

By default, the panel will be labeled by its limestone/Panelslimestone/Panels.Header. When aria-label is set, it will be used instead to provide an accessibility label for the panel.


FunctionObject

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.


ElementArray(Element)

Components to be included under the primary content.

Typically, up to 2 buttons may be included.


'auto''always''never'

Specifies when and how to show nextButton on WizardPanel.

  • 'auto' will display the nextButton on every WizardPanels.Panel except the last

  • 'always' will always display the nextButton

  • 'never' will always hide the nextButton

Note, children values will override the generalized parent visibility settings. In this case, a customized nextButton on WizardPanels.Panel will take precedence over the nextButtonVisibility value.

Default: 'auto'

Disables panel transitions.


Omits the steps component.


Omits the subtitle area.

Default: false

Called when the index value is changed.


Called when the next button is clicked in WizardPanel.

Calling preventDefault on the passed event will prevent advancing to the next panel.


Called when previous button is clicked in WizardPanel.

Calling preventDefault on the passed event will prevent navigation to the previous panel.


Called when a transition completes.


Called before a transition begins.


'auto''always''never'

Specifies when and how to show prevButton on WizardPanel.

  • 'auto' will display the prevButton on every WizardPanels.Panel except the first

  • 'always' will always display the prevButton

  • 'never' will always hide the prevButton

Note, children values will override the generalized parent visibility settings. In this case, if user provides a customized prevButton on WizardPanels.Panel will take precedence over the prevButtonVisibility value.

Default: 'auto'

The subtitle to display.

If limestone/WizardPanelslimestone/WizardPanels.WizardPanelsBase.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.