sandstone/ Flexible Popup Panels
Provides a Sandstone styled flexible-width, popup-styled Panels component.
import FlexiblePopupPanels from '@enact/sandstone/FlexiblePopupPanels';
Members
FlexiblePopupPanelsComponent
An instance of Panels which restricts the Panel
to the left
or right side of the screen inside a popup. This panel flexes both horizontally and vertically,
with the Header positioned outside the Panel background area. This is typically used for a single
setting or control at a time, for maximum background area viewing.
import FlexiblePopupPanels from '@enact/sandstone/FlexiblePopupPanels';
Statics
A shortcut to access sandstone/FlexiblePopupPanels.Header
A shortcut to access sandstone/FlexiblePopupPanels.Panel
Properties
Specifies when and how to show
nextButton
onFlexiblePopupPanels.Panel
.'auto'
will display thenextButton
if more than oneFlexiblePopupPanels.Panel
exists'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
nextButton
onFlexiblePopupPanels.Panel
will take precedence over thenextButtonVisibility
value.Default: 'auto'Called when the index value is changed.
Called when the next button is clicked in
FlexiblePopupPanels.Panel
.Calling
preventDefault
on the passed event will prevent advancing to the next panel.Called when the previous button is clicked in
FlexiblePopupPanels.Panel
.Calling
preventDefault
on the passed event will prevent navigation to the previous panel.Specifies when and how to show
prevButton
onFlexiblePopupPanels.Panel
.'auto'
will display theprevButton
if more than oneFlexiblePopupPanels.Panel
exists'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
prevButton
onFlexiblePopupPanels.Panel
will take precedence over theprevButtonVisibility
value.Default: 'auto'
HeaderComponent
A header component for FlexiblePopupPanels.Panel
with a title
and subtitle
, supporting several configurable
slots for components.
import {Header} from '@enact/sandstone/FlexiblePopupPanels';
Properties
Hint string read when focusing the application close button.
Default: 'Exit app'Background opacity of the application close button.
Default: 'transparent'Omits the close button.
Default: falseCalled when the app close button is clicked.
PanelComponent
The standard view container used inside a FlexiblePopupPanels view manager instance.
import {Panel} from '@enact/sandstone/FlexiblePopupPanels';
Properties
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>}
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>}
Sets a pre-determined width on this panel.
The 'auto' value will attempt to adjust the panel size to the content size. Note: the
title
may not match in width.Default: 'auto'