-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDE-2563
1 parent
22e8807
commit 04d4d09
Showing
9 changed files
with
151 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
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
18 changes: 18 additions & 0 deletions
18
projects/demo/src/app/button-group/angular/router-link/router-link-button-group.html
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,18 @@ | ||
<!-- | ||
~ Copyright (c) 2016-2025 Broadcom. All Rights Reserved. | ||
~ The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. | ||
~ This software is released under MIT license. | ||
~ The full license information can be found in LICENSE in the root directory of this project. | ||
--> | ||
|
||
<h4>Router Link</h4> | ||
|
||
<div class="clr-example"> | ||
<clr-button-group> | ||
<clr-button routerLink="route-one" routerLinkActive="btn-primary">1</clr-button> | ||
<clr-button routerLink="route-two" routerLinkActive="btn-primary">2</clr-button> | ||
<clr-button routerLink="route-three" routerLinkActive="btn-primary">3</clr-button> | ||
</clr-button-group> | ||
</div> | ||
|
||
<router-outlet></router-outlet> |
29 changes: 29 additions & 0 deletions
29
projects/demo/src/app/button-group/angular/router-link/router-link-button-group.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,29 @@ | ||
/* | ||
* Copyright (c) 2016-2025 Broadcom. All Rights Reserved. | ||
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. | ||
* This software is released under MIT license. | ||
* The full license information can be found in LICENSE in the root directory of this project. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: './router-link-button-group.html', | ||
styleUrls: ['../../button-group.demo.scss'], | ||
}) | ||
export class RouterLinkButtonGroupDemo {} | ||
|
||
@Component({ | ||
template: 'route-one works!', | ||
}) | ||
export class RouterLinkButtonGroupDemoRouteOneComponent {} | ||
|
||
@Component({ | ||
template: 'route-two works!', | ||
}) | ||
export class RouterLinkButtonGroupDemoRouteTwoComponent {} | ||
|
||
@Component({ | ||
template: 'route-three works!', | ||
}) | ||
export class RouterLinkButtonGroupDemoRouteThreeComponent {} |
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