Using the proper Angular Material directive, how do I change the direction to vertical?
Starting with vertical tabs:
Then want to drop to content below mat-select dropdown:
EDIT: Will be working on adapting https://stackoverflow.com/a/43389018 into my answer, if someone doesn't beat me to it :)
I am very new to Angular and tried to create vertical tabs using tabs, Sidenav and mat-action-list. I had to create separate component for tabs with hidden headers (because of ViewEncapsulation.None usage)
I don't know how to create stackblitz content yet. Here is very basic implementation. Hope it helps someone.
app.component.html
app.component.css
app.component.ts
tab-content.component.html
tab-content.component.css
tab-content.component.ts
Wrote angular-vertical-tabs. This simply wraps
@angular/material
'smat-selection-list
, and uses@angular/flex-layout
to reorient for different screens sizes.Usage
Output
Full width
Smaller screen