-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(components/tabs): show vertical tab content when activated progra…
…mmatically after init (#2024)
- Loading branch information
1 parent
b745087
commit d453e40
Showing
5 changed files
with
72 additions
and
3 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
22 changes: 22 additions & 0 deletions
22
...s/tabs/src/lib/modules/vertical-tabset/fixtures/vertical-tabset-programmatic.component.ts
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,22 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { SkyVerticalTabsetModule } from '../vertical-tabset.module'; | ||
|
||
@Component({ | ||
standalone: true, | ||
template: `<sky-vertical-tabset> | ||
<sky-vertical-tab tabHeading="Tab 1" [active]="activeIndex === 0"> | ||
Tab 1 content | ||
</sky-vertical-tab> | ||
<sky-vertical-tab tabHeading="Tab 2" [active]="activeIndex === 1"> | ||
Tab 2 content | ||
</sky-vertical-tab> | ||
<sky-vertical-tab tabHeading="Tab 3" [active]="activeIndex === 2"> | ||
Tab 3 content | ||
</sky-vertical-tab> | ||
</sky-vertical-tabset>`, | ||
imports: [SkyVerticalTabsetModule], | ||
}) | ||
export class VerticalTabsetProgrammaticTestComponent { | ||
public activeIndex = 0; | ||
} |
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