Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SfTabsComponent

API reference for SfTabsComponent

import {SfTabsModule} from "@progress/sitefinity-component-framework";


selector: sf-tabs description: Represents a tabs component with several tabs

Hierarchy

Implements

  • OnDestroy
  • AfterContentInit
  • OnChanges

Index

Properties

cssClassList

cssClassList: string = stringConstants.EMPTY_STRING

The css class list of the wrapper

currentTab

currentTab: SfTabDirective

The currently selected tab

hasTabsListSection

hasTabsListSection: boolean = true

Whether there are tabs to display

initialTabName

initialTabName: string

Sets the initially selected tab

tabList

tabList: QueryList<SfTabDirective>

Gets the content children of type SfTabDirective Each on represents a single tab

tabsLook

tabsLook: string

Sets the css modifiers of the wrapper

Methods

Private generateCssClassList

  • generateCssClassList(): string
  • Generates the css class list of the wrapper

    Returns string

isSelected

  • isSelected(tabName: string): boolean
  • Whether a tab is selected

    Parameters

    • tabName: string

    Returns boolean

loaderInit

  • Handles component loader init event

    Parameters

    Returns void

ngAfterContentInit

  • ngAfterContentInit(): void
  • Returns void

ngOnChanges

  • ngOnChanges(changes: SimpleChanges): void
  • Parameters

    • changes: SimpleChanges

    Returns void

ngOnDestroy

  • ngOnDestroy(): void

onSelectTab

  • Handles tab selection Emits the tabClick event

    Parameters

    Returns void

Private onTabSelectorChange

Protected registerSubscription

  • registerSubscription(sub: Subscription): void

Protected removeSubsriptions

  • removeSubsriptions(): void

Private selectFirstTab

  • selectFirstTab(): void
  • Selects the first tab

    Returns void

selectTabByName

  • selectTabByName(tabName: string): void
  • Selects tab by name If tab is not found and there is no current tab, selects the first tab

    Parameters

    • tabName: string

    Returns void

Generated using TypeDoc