The ui-panel-container element creates a generic customizable template element that allows users to
switch between different content panels using a set of predefined triggers.
In most cases you will probably want to use the Tabs or Wizard
elements instead of the generic PanelContainer. However, the PanelContainer element is
the base class used by both, the Tabs and Wizard elements.
Panel 1 Panel 2 Panel 3 Panel 4Content 1Content 2Content 3Content 4
The ui-panel-container element:
current property, which sets the currently displayed panel by its index,
animated property, which will turn animations on or off,
ui-panel-changed event when its current panel is changed through user interaction
This example shows a panel container using plain HTML and no data-binding or templating. The trigger elements can
be an arbitrary element and appropriate click and keydown handlers will be added
automatically. The order of the triggers correlates with the order of the panels which are controlled by each
trigger.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio dolore consectetur nihil nam dolorem eius eligendi, amet ipsa veniam provident temporibus quam laborum impedit nemo at suscipit et iure quia.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio dolore consectetur nihil nam dolorem eius eligendi, amet ipsa veniam provident temporibus quam laborum impedit nemo at suscipit et iure quia.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio dolore consectetur nihil nam dolorem eius eligendi, amet ipsa veniam provident temporibus quam laborum impedit nemo at suscipit et iure quia.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio dolore consectetur nihil nam dolorem eius eligendi, amet ipsa veniam provident temporibus quam laborum impedit nemo at suscipit et iure quia.
PanelChangeEventThe ui-wizard element extends the ui-panel-container element and therefore provides
the same inputs and events.
The main difference of the ui-wizard is, that it will add additional aria attributes to the panel
and trigger elements inside of the wizard to mark them as navigation links which are tied to a step in a
process.
When using the ui-wizard in an app, make sure to include both the:
@swivel-fnace/ui/elements/panel-container/panel-container.css and @swivel-fnace/ui/elements/wizard/wizard.cssstyles, as the ui-panel-container base styles setup the basic panel layout as well as animations.
Select a position
Transaction Preview
Transaction Result
The ui-tabs element extends the ui-panel-container element and therefore provides
the same inputs and events. In addition, the ui-tabs element:
orientation property, which sets the navigation direction and layout for the tablist;horizontal (default) and vertical
The ui-tabs element adds additional keyboard navigation behavior to the tablist, to allow users
to navigate between tabs by using the arrow keys on their keyboard.
When using the ui-tabs in an app, make sure to include both the:
@swivel-fnace/ui/elements/panel-container/panel-container.css and @swivel-fnace/ui/elements/tabs/tabs.cssstyles, as the ui-panel-container base styles setup the basic panel layout as well as animations.
Tab One
Tab Two