Skip to content

Commit

Permalink
docs: Use template projectino for the last 2 tabs
Browse files Browse the repository at this point in the history
Signed-off-by: Akshat Patel <[email protected]>
  • Loading branch information
Akshat Patel committed Jun 4, 2024
1 parent 566c35b commit 84b5575
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/tabs/tabs.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,20 @@ const Template = (args) => ({
[followFocus]="followFocus"
[isNavigation]="isNavigation"
[cacheActive]="cacheActive">
<cds-tab heading="one" [tabContent]="one"></cds-tab>
<cds-tab heading="two" [tabContent]="two"></cds-tab>
<cds-tab heading="one">Tab Content 1</cds-tab>
<cds-tab heading="two">Tab Content 2</cds-tab>
<cds-tab heading="three" [tabContent]="three"></cds-tab>
<cds-tab heading="four">Tab Content 4</cds-tab>
<cds-tab heading="four" [tabContent]="four"></cds-tab>
</cds-tabs>
<!-- Use templates if you would like to have lifecycle hooks called when cacheActive is false -->
<ng-template #one>
Tab Content 1
</ng-template>
<ng-template #two>
Tab Content 2
</ng-template>
<ng-template #three>
Tab Content 3
</ng-template>
<ng-template #four>
Tab Content 4
</ng-template>
`
});
export const Basic = Template.bind({});
Expand Down

0 comments on commit 84b5575

Please sign in to comment.