Skip to content

feat(tabs): add support of Vertical tabs #3033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kmaci3k opened this issue Nov 13, 2017 · 3 comments
Open

feat(tabs): add support of Vertical tabs #3033

kmaci3k opened this issue Nov 13, 2017 · 3 comments

Comments

@kmaci3k
Copy link

kmaci3k commented Nov 13, 2017

Is there any way to configure ngx-bootstrap veritcal tabs in a way that headings are on the left side (class="col-3"), and content is next to it (class="col-9") ?

@IlyaSurmay
Copy link
Contributor

There's no such possibility for now. I'll mark this issue as feature request

@hellodpk
Copy link

Hi
I also want such feature and after long hours of search and trial, I managed to solve by

@Component({ selector: 'your-selector', templateUrl: 'your-selector.component.html', styles: [ ':host >>> tabset.tabset>ul{border-bottom: 1px solid #ddd;float: left; display: block;margin-right: 20px;border-bottom: 0;border-right: 1px solid #ddd;padding-right: 15px;}' ], })

This .tabset is added to the selective tabset element so that I want to have vertical layout for that element only.

In HTML

<tabset class="tabset"> <tab *ngFor="let data of yourDynamicData; let index=index" [heading]="data">{{index}} Content</tab> </tabset>

Sample Output

screenshot from 2017-12-15 18 45 46

Note I am Using "ngx-bootstrap": "^1.9.3",

Hope it helps community.

@YevheniiaMazur YevheniiaMazur changed the title Vertical tabs - heading and content next to each other (in one row) feat(tabs): add support of Vertical tabs Jan 16, 2018
@aitorllj93
Copy link

Hi, I have found another way to make vertical tabs work with vertical behavior.

Add this to your stylesheets:

.tab-container {
  display: inherit;
}

And then wrap your tabset in a row element (should work with any element with a display:flex)

<div class="row">
  <tabset [vertical]="true" type="pills">
    <tab heading="Vertical 1">Vertical content 1</tab>
    <tab heading="Vertical 2">Vertical content 2</tab>
  </tabset>
</div>

If you want the default behavior you can wrap it with a display:block or display:inline element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants