Tabs

<sw-tabs>

ready
Renders tabs. Each item references a route or emits a custom event.

Usage

Loading...
<sw-tabs>

    <sw-tabs-item>
        Explore
    </sw-tabs-item>

    <sw-tabs-item>
        My Plugins
    </sw-tabs-item>

</sw-tabs>

Component properties

Property name Type Default
isVertical Boolean false
small Boolean true
alignRight Boolean false
defaultItem String

Methods

Method name Parameters
mountedComponent No parameters
recalculateSlider No parameters
createdComponent No parameters
updateActiveItem No parameters
scrollTo direction
checkIfNeedScroll No parameters
setActiveItem item
scrollToItem item
addScrollbarOffset No parameters

Imports

  • ./sw-tabs.html.twig
  • ./sw-tabs.scss

Watcher

  • activeTabHasErrors

Twig blocks

  • sw_tabs_content_slot
  • sw_tabs_slider
  • sw_tabs_content
  • sw_tabs_arrow_left
  • sw_tabs_arrow_right
  • sw_tabs_custom_content
  • sw_tabs

Slots

  • default
  • content