-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(material/button-toggle): Update docs and examples (#29256)
- Loading branch information
Showing
11 changed files
with
63 additions
and
54 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
3 changes: 0 additions & 3 deletions
3
...amples/material/button-toggle/button-toggle-exclusive/button-toggle-exclusive-example.css
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...mples/material/button-toggle/button-toggle-exclusive/button-toggle-exclusive-example.html
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...xamples/material/button-toggle/button-toggle-exclusive/button-toggle-exclusive-example.ts
This file was deleted.
Oops, something went wrong.
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
52 changes: 39 additions & 13 deletions
52
...onents-examples/material/button-toggle/button-toggle-mode/button-toggle-mode-example.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 |
---|---|---|
@@ -1,13 +1,39 @@ | ||
<h3>Single selection</h3> | ||
<mat-button-toggle-group name="favoriteColor" aria-label="Favorite Color"> | ||
<mat-button-toggle value="red">Red</mat-button-toggle> | ||
<mat-button-toggle value="green">Green</mat-button-toggle> | ||
<mat-button-toggle value="blue">Blue</mat-button-toggle> | ||
</mat-button-toggle-group> | ||
|
||
<h3>Multiple selection</h3> | ||
<mat-button-toggle-group name="ingredients" aria-label="Ingredients" multiple> | ||
<mat-button-toggle value="flour">Flour</mat-button-toggle> | ||
<mat-button-toggle value="eggs">Eggs</mat-button-toggle> | ||
<mat-button-toggle value="sugar">Sugar</mat-button-toggle> | ||
</mat-button-toggle-group> | ||
<section> | ||
<mat-checkbox | ||
[checked]="hideSingleSelectionIndicator()" | ||
(change)="toggleSingleSelectionIndicator()" | ||
> | ||
Hide Single Selection Indicator | ||
</mat-checkbox> | ||
<mat-checkbox | ||
[checked]="hideMultipleSelectionIndicator()" | ||
(change)="toggleMultipleSelectionIndicator()" | ||
> | ||
Hide Multiple Selection Indicator | ||
</mat-checkbox> | ||
</section> | ||
<section> | ||
<h3>Single selection</h3> | ||
<mat-button-toggle-group | ||
name="favoriteColor" | ||
aria-label="Favorite Color" | ||
[hideSingleSelectionIndicator]="hideSingleSelectionIndicator()" | ||
> | ||
<mat-button-toggle value="red">Red</mat-button-toggle> | ||
<mat-button-toggle value="green">Green</mat-button-toggle> | ||
<mat-button-toggle value="blue">Blue</mat-button-toggle> | ||
</mat-button-toggle-group> | ||
</section> | ||
<section> | ||
<h3>Multiple selection</h3> | ||
<mat-button-toggle-group | ||
name="ingredients" | ||
aria-label="Ingredients" | ||
[hideMultipleSelectionIndicator]="hideMultipleSelectionIndicator()" | ||
multiple | ||
> | ||
<mat-button-toggle value="flour">Flour</mat-button-toggle> | ||
<mat-button-toggle value="eggs">Eggs</mat-button-toggle> | ||
<mat-button-toggle value="sugar">Sugar</mat-button-toggle> | ||
</mat-button-toggle-group> | ||
</section> |
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