Skip to content
Enact

limestone/PopupTabLayout

Provides a floating component suitable for grouping collections of managed views.

An instance of limestone/Popuplimestone/Popup.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>

Tabbed Layout component in a floating Popup.

Extends: limestone/Popuplimestone/Popup.Popup
Extends: limestone/TabLayoutlimestone/TabLayout.TabLayout

Properties

Collection of limestone/PopupTabLayoutlimestone/PopupTabLayout.Tab 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 - true when the tabs are collapsed


Controls the visibility of the Popup.

By default, the Popup and its contents are not rendered until open.


'transparent''translucent''none'

Scrim type.

  • Values: 'transparent', 'translucent', or 'none'.

'none' is not compatible with spotlightRestrict of 'self-only', use a transparent scrim to prevent mouse focus when using popup.

Default: 'translucent'

The container id for spotlight/SpotlightContainerDecorator/#SpotlightContainerDecoratorspotlight/SpotlightContainerDecorator/#SpotlightContainerDecorator.spotlightId.


'none''self-first''self-only'

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 limestone/Popuplimestone/Popup.Popup component only supports 'self-first' and 'self-only'.

PopupTabLayoutDecorator   Higher-Order Component

Section titled “PopupTabLayoutDecorator &ensp; Higher-Order Component ”

Add behaviors to PopupTabLayout.

Includes: limestone/Skinnablelimestone/Skinnable.Skinnable

A Tab for use inside this component.

Extends: limestone/TabLayoutlimestone/TabLayout.Tab

A customized version of Panel for use inside this component.

Extends: limestone/Panelslimestone/Panels.Panel

A customized version of Panels for use inside this component.

Extends: limestone/PopupTabLayoutlimestone/PopupTabLayout.TabPanelsBase

Properties

Omits the close button.

Unlike most components, this prop defaults to true. To show the close button, the prop must explicitly set it to false:

<TabPanels noCloseButton={false} />
Default: true

A base component for limestone/PopupTabLayoutlimestone/PopupTabLayout.TabPanels which has left key handler to navigate panels.

Extends: limestone/Panelslimestone/Panels.Panels