Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
maxSS edited this page Sep 13, 2019 · 2 revisions
import { JamTabsModule } from 'ngx-jsonapi-material';

Selector: jam-tabs

Properties
Name Value type Required Description
@Input() tabNames Object false
@Input() tabGroup MatTabGroup false
@Input() defaultTabIndex number false

Basic tabs

<mat-tab-group jamTabs [tabNames]="tab_names" [tabGroup]="tabGroup" #tabGroup>
    <mat-tab label="Tab 1">
        ...
    </mat-tab>
    <mat-tab label="Tab 2">
        ...
    </mat-tab>
</mat-tab-group>

In the component:

Basic tabs

...

export component TabsComponent {
    public tab_names = {
        tab_1: 0,
        tab_2: 1
    };

...
}
Clone this wiki locally