Skip to content
Enact

limestone/PageViews

Provides a Limestone styled pages component with page indicator and navigation buttons.

Usage:

<PageViews>
	<PageViews.Page aria-label="This is a description for page">
		lorem ipsum ...
	</PageViews.Page>
</PageViews>

A PageViews that can navigate through different pages. Expects limestone/PageViewslimestone/PageViews.Page as children.

Extends: limestone/PageViewslimestone/PageViews.PageViewsBase
Wrapped with: ui/Changeableui/Changeable.Changeable

Properties
'default-element''last-focused''none'String

Sets the strategy used to automatically focus an element within the PageViews upon render. When set to 'none', focus is not set only on the first render.

Default: 'last-focused'

Page for limestone/PageViewslimestone/PageViews.PageViews.

Properties

Contents of the page.


Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.

The following classes are supported:

  • page - The root component class


The aria-label for the page.

Example:

<PageViews.Page aria-label="This is a description for page">

A PageViews that has page indicator with corresponding pages.

Properties

When true, disables Spotlight outside the container and enables 5-way navigation between panels. Footer buttons are hidden when bannerMode is true.


limestone/PageViewslimestone/PageViews.Page to be rendered.


FunctionObject

Obtains a reference to the root node.


Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.

The following classes are supported:

  • pageViews - The root component class

  • contentsArea - The contentsArea component class

  • footerButtons - The footerButtons component class

  • navButton - The navButton component class

  • navButtonContainer - Applied to the container containing navButtons in fullContents mode

  • stepsRow - The step component class


The label of the footer Close button.

Default: 'Close'

When true, maximize its contents area.


Index of the active page.

Default: 0

Disables page transitions.

Default: false

Function

Called when the footer Close button is clicked.


Called when a transition completes.


Called before a transition begins.


'top''bottom'

Specifies on which side ('top' or 'bottom') the page indicator appears.

Default: 'bottom'

'dot''number'

Type of page indicator.

There are two types:

  • dot - Indicates pages by dots.

  • number - Indicates pages by current page number and total number of pages.

Default: 'dot'

When true, renders footer Close and Next buttons below the page content. Footer buttons are hidden when bannerMode is true.

Default: false