You can use the standard Angular Material component named mat-tab-group to embed into the page a tab menu.
Sample Code
<mat-tab-group>
<mat-tab label="General">
<ng-template matTabContent>
<include-template name="general"></include-template>
</ng-template>
</mat-tab>
<mat-tab label="Consumption">
<ng-template matTabContent>
<gauge-widget....></gauge-widget>
<thing-details-widget...></thing-details-widget>
</ng-template>
</mat-tab>
</mat-tab-group>
You are free to define into a single template the content of all tabs or included other templates, as you prefer.
Configuration
For more details on how to configure and use the mat-tab-group component, refer to the Angular Material documentation.
The ng-template tag is not strictly necessary, but it is recommended in case the included template, or inline defined content is complex. If it is missing, unexpected or incomplete page refreshes can occur.
Comments
0 comments
Please sign in to leave a comment.