We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc6cf6e commit 78464a2Copy full SHA for 78464a2
src/demo-app/tabs/tabs-demo.html
@@ -97,6 +97,15 @@ <h1>Tab Group Demo - Fixed Height</h1>
97
</md-tab>
98
</md-tab-group>
99
100
+<h1>Stretched Tabs</h1>
101
+
102
+<md-tab-group class="demo-tab-group" style="height: 200px" md-stretch-tabs>
103
+ <md-tab *ngFor="let tab of tabs" [disabled]="tab.disabled">
104
+ <template md-tab-label>{{tab.label}}</template>
105
+ {{tab.content}}
106
+ </md-tab>
107
+</md-tab-group>
108
109
110
<h1>Async Tabs</h1>
111
src/lib/tabs/tab-group.scss
@@ -25,6 +25,11 @@
25
}
26
27
28
+:host[md-stretch-tabs] .md-tab-label {
29
+ flex-basis: 0;
30
+ flex-grow: 1;
31
+}
32
33
// The ink bar that displays next to the active tab
34
md-ink-bar {
35
@include ink-bar;
0 commit comments