OrionTabs

<o-tabs> displays tabs. It must be used with <o-tab-pane> components (more infos below).

Its mecanism is very similar with the <o-timeline> component (more infos here).

Usage

TabsPlayground

Using with VueRouter

Since version 1.6.0, it is possible to use the OrionTabs component with VueRouter.

You only need to provide the nested OrionTabPane, and Orion will automatically add the appropriate <router-view/> component.

The name prop will correspond to the name property of the target route.

<!-- Simple usage -->
<o-tabs use-router>
	<o-tab-pane name="RouteOne" label="Label One"/>
	<o-tab-pane name="RouteTwo" label="Label Two"/>
	<o-tab-pane name="RouteThree" label="Label Three"/>
</o-tabs>

 





To avoid conflicts with your other subviews, you can use the named views system of VueRouter: https://router.vuejs.org/guide/essentials/named-views.htmlopen in new window

<!-- Usage with named views -->
<o-tabs use-router router-view-name="mySubview">
	<o-tab-pane name="RouteOne" label="Label One"/>
	<o-tab-pane name="RouteTwo" label="Label Two"/>
	<o-tab-pane name="RouteThree" label="Label Three"/>
</o-tabs>

 




Orion Tabs

Props

Name
loaderstring | boolean = undefined
modelValuestring = undefined
routerViewNamestring = undefined
useRouterboolean = false

Events

Name
Payload type
input
string
tab-click
[OrionTabPane, MouseEvent]
update:modelValue
string

PublicInstance

Name
Type
_loader
() => OrionLoader
panes
Orion.Private.TsxTabPane[]
getValue
() => string | undefined
useRouter
boolean
_el
(() => HTMLElement | undefined) | undefined

Provide

Name
Type
_tabs
publicInstance

Orion Tab Pane

TabPaneMarker TabPaneStyle

Props

Name
disabledboolean = false
fontIconstring = undefined
iconOrion.Icon = undefined
labelstring = undefined
lazyboolean = false
lazyOnceboolean = false
markerboolean | number = undefined
markerColorOrion.Color = 'danger'
namestring = undefined
Required

Slots

Name
Bindings
default
No bindings

PublicInstance

Name
Type
disabled
boolean
name
string
_el
(() => HTMLElement | undefined) | undefined