Class Tabs

    • Method Detail

      • tabs

        public static Tabs tabs()
      • addTab

        public Tabs addTab​(Tab tab)
      • add

        public Tabs add​(Tab tab)
      • closeable

        public Tabs closeable()
      • lightTabs

        public Tabs lightTabs​(boolean lightTabs)
        Enables lightTabs styling to the tab component
      • noBorderBottom

        public Tabs noBorderBottom​(boolean noBorderBottom)
        Disables border bottom tab styling on tabs. Defaults to false. To remove the bottom border, set this prop to true.
      • overflowHorizontal

        public Tabs overflowHorizontal()
        Flag which places overflowing tabs into a menu triggered by the last tab. Unlike other flags, this can only be turned on, but not off.
      • overflowHorizontal

        public Tabs overflowHorizontal​(String overflowText)
        Flag which places overflowing tabs into a menu triggered by the last tab. Unlike other flags, this can only be turned on, but not off.
      • noInitialSelection

        public Tabs noInitialSelection()
        By default, the first tab is selected initially. Call this method to disable thi default behaviour.
      • showTabCount

        public Tabs showTabCount​(boolean showTabCount)
        Flag which shows the count of overflowing tabs when enabled
      • toggleText

        public Tabs toggleText​(String text)
        Text that appears in the expandable toggle. If not set, the text of the selected tab is used.
      • ariaLabel

        public Tabs ariaLabel​(String label)
        Provides an accessible label for the tabs. Labels should be unique for each set of tabs that are present on a page. When component is set to nav, this prop should be defined to differentiate the tabs from other navigation regions on the page.
      • ariaAddLabel

        public Tabs ariaAddLabel​(String label)
        Aria-label for the add button.
      • ariaScrollBackLabel

        public Tabs ariaScrollBackLabel​(String label)
        Aria-label for the back scroll button
      • ariaScrollForwardLabel

        public Tabs ariaScrollForwardLabel​(String label)
        Aria-label for the forward scroll button
      • ariaOverflowLabel

        public Tabs ariaOverflowLabel​(String label)
        The aria label applied to the button which toggles the tab overflow menu
      • ariaToggleLabel

        public Tabs ariaToggleLabel​(String label)
        Aria-label for the expandable toggle
      • onAdd

        public Tabs onAdd​(Function<Tabs,​Tab> addHandler)
        Callback for the add button. Passing this property inserts the add button.
      • close

        public void close​(String id)
      • close

        public void close​(Tab tab)
      • select

        public void select​(String id)
      • select

        public void select​(Tab tab)
      • currentTab

        public Tab currentTab()