-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tabs): decompose manual selection section (#3547)
Decompose Manual selection to Manual and Disable selection close #3545
- Loading branch information
1 parent
e52b896
commit 6c9afd9
Showing
6 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div> | ||
<p>Switching Enable/Disable tab</p> | ||
<p> | ||
<button type="button" class="btn btn-primary btn-sm" (click)="disableEnable()"> | ||
Enable / Disable third tab | ||
</button> | ||
</p> | ||
<hr/> | ||
<tabset #staticTabs> | ||
<tab heading="Static title">Static content</tab> | ||
<tab heading="Static Title 1">Static content 1</tab> | ||
<tab heading="Static Title 2">Static content 2</tab> | ||
<tab heading="Static Title 3">Static content 3</tab> | ||
</tabset> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Component, ViewChild } from '@angular/core'; | ||
import { TabsetComponent } from 'ngx-bootstrap'; | ||
|
||
@Component({ | ||
selector: 'demo-tabs-disable', | ||
templateUrl: './disable.html' | ||
}) | ||
export class DemoTabsDisableComponent { | ||
@ViewChild('staticTabs') staticTabs: TabsetComponent; | ||
|
||
disableEnable() { | ||
this.staticTabs.tabs[2].disabled = !this.staticTabs.tabs[2].disabled; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters