Tabs component is used to organize or switch between similar data sets.

Igx Module
IgxTabsModule
Igx Theme
igx-tabs-theme
Igx Keywords
tabs
Igx Group
Layouts

Remarks

The Ignite UI for Angular Tabs component places tabs at the top, or before or after the content with headerPosition, and allows for scrolling when there are multiple tab items on the screen.

Example

<igx-tabs>
    <igx-tab-item>
        <igx-tab-header>
            <igx-icon igxTabHeaderIcon>folder</igx-icon>
            <span igxTabHeaderLabel>Tab 1</span>
        </igx-tab-header>
        <igx-tab-content>
            Content 1
        </igx-tab-content>
    </igx-tab-item>
    ...
</igx-tabs>
new IgxTabsComponent(): IgxTabsComponent

Defined in projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts:202

Returns IgxTabsComponent

Determines the tab activation. When set to auto, the tab is instantly selected while navigating with the arrow keys (Left/Right in a row of headers, Up/Down in a column), Home or End, and the corresponding panel is displayed. When set to manual, the tab is only focused. The selection happens after pressing Space or Enter. Defaults to auto.

activation: "manual" | "auto" = 'auto'

Defined in projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts:128

Inherited from: IgxTabsDirective

Enables/disables the transition animation of the contents.

disableAnimation: boolean = false

Defined in projects/igniteui-angular/tabs/src/tabs/tabs.directive.ts:66

Inherited from: IgxTabsDirective

Output to enable support for two-way binding on [(selectedIndex)]

selectedIndexChange: EventEmitter<number>

Defined in projects/igniteui-angular/tabs/src/tabs/tabs.directive.ts:72

Inherited from: IgxTabsDirective

Emitted when the selected index is about to change.

selectedIndexChanging: EventEmitter<ITabsSelectedIndexChangingEventArgs>

Defined in projects/igniteui-angular/tabs/src/tabs/tabs.directive.ts:78

Inherited from: IgxTabsDirective

Emitted when the selected item is changed.

selectedItemChange: EventEmitter<ITabsSelectedItemChangeEventArgs>

Defined in projects/igniteui-angular/tabs/src/tabs/tabs.directive.ts:84

The side of the content on which the tab headers are placed. Defaults to top.

get headerPosition(): IgxTabsHeaderPosition

Defined in projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts:144

Example

<igx-tabs headerPosition="start">...</igx-tabs>

Returns IgxTabsHeaderPosition

set headerPosition(value: IgxTabsHeaderPosition): void

Defined in projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts:148

Parameters

Returns void

Inherited from: IgxTabsDirective

Gets/Sets the index of the selected item. Default value is 0 if contents are defined otherwise defaults to -1.

get selectedIndex(): number

Defined in projects/igniteui-angular/tabs/src/tabs/tabs.directive.ts:36

Returns number

set selectedIndex(value: number): void

Defined in projects/igniteui-angular/tabs/src/tabs/tabs.directive.ts:40

Parameters

  • value: number

Returns void

Inherited from: IgxTabsDirective

Gets/Sets the tab alignment. Defaults to start.

get tabAlignment(): string

Defined in projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts:108

Returns string

set tabAlignment(value: string): void

Defined in projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts:112

Parameters

  • value: string

Returns void