sandstone/ Popup Tab Layout
Provides a floating component suitable for grouping collections of managed views.
import PopupTabLayout from '@enact/sandstone/PopupTabLayout';Members
PopupTabLayoutComponent
An instance of Popup which restricts the TabLayout content to
the left side of the screen. The content of TabLayout can flex vertically, but not horizontally
(fixed width). This is typically used to switch between several collections of managed views
(TabPanels and TabPanel, also exported from this module).
Example:
<PopupTabLayout>
<Tab title="Tab One">
<TabPanels>
<TabPanel>
<Header title="First Panel" type="compact" />
<Item>Item 1 in Panel 1</Item>
<Item>Item 2 in Panel 1</Item>
</TabPanel>
<TabPanel>
<Header title="Second Panel" type="compact" />
<Item>Item 1 in Panel 2</Item>
<Item>Item 2 in Panel 2</Item>
</TabPanel>
</TabPanels>
</Tab>
<Tab title="Tab Two">
<Item>Goodbye</Item>
</Tab>
</PopupTabLayout>import PopupTabLayout from '@enact/sandstone/PopupTabLayout';Statics
A shortcut to access sandstone/PopupTabLayout.Tab
PopupTabLayoutBaseComponent
Tabbed Layout component in a floating Popup.
import {PopupTabLayoutBase} from '@enact/sandstone/PopupTabLayout';Properties
Collection of Tabs to render.
Collapses the vertical tab list into icons only.
Only applies to
orientation="vertical". If the tabs do not include icons, a single collapsed icon will be shown.The currently selected tab.
Disables transition animation.
Called when the tabs are collapsed.
Called when the tabs are expanded.
Called after the popup's "hide" transition finishes.
Called when a tab is selected
Called after the popup's "show" transition finishes.
Called when the tab collapse or expand animation completes.
Event payload includes:
type- Always set to "onTabAnimationEnd"collapsed-truewhen the tabs are collapsed
Controls the visibility of the Popup.
By default, the Popup and its contents are not rendered until
open.Scrim type.
Values:
'transparent','translucent', or'none'.
'none'is not compatible withspotlightRestrictof'self-only', use a transparent scrim to prevent mouse focus when using popup.Default: 'translucent'The container id for Spotlight container.
Restricts or prioritizes navigation when focus attempts to leave the popup.
It can be either
'none','self-first', or'self-only'.Note: The ready-to-use Popup component only supports
'self-first'and'self-only'.
PopupTabLayoutDecoratorHigher-Order Component
Add behaviors to PopupTabLayout.
import {PopupTabLayoutDecorator} from '@enact/sandstone/PopupTabLayout';TabComponent
A Tab for use inside this component.
import {Tab} from '@enact/sandstone/PopupTabLayout';TabPanelComponent
A customized version of Panel for use inside this component.
import {TabPanel} from '@enact/sandstone/PopupTabLayout';TabPanelsComponent
A customized version of Panels for use inside this component.
import {TabPanels} from '@enact/sandstone/PopupTabLayout';Properties
Omits the close button.
Unlike most components, this prop defaults to
true. To show the close button, the prop must explicitly set it tofalse:<TabPanels noCloseButton={false} />Default: true
TabPanelsBaseComponent
A base component for TabPanels which has left key handler to navigate panels.
import {TabPanelsBase} from '@enact/sandstone/PopupTabLayout';