FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
components/src/material/button-toggle/button-toggle.html at main · angular/components · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
angular
/
components
Public
Notifications
You must be signed in to change notification settings
Fork
6.8k
Star
25k
Code
Issues
1.2k
Pull requests
182
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
components
/
src
/
material
/
button-toggle
/
button-toggle.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (34 loc) · 1.37 KB
Breadcrumbs
components
/
src
/
material
/
button-toggle
/
button-toggle.html
Copy path
File metadata and controls
36 lines (34 loc) · 1.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<
button
#button
class
="
mat-button-toggle-button mat-focus-indicator
"
type
="
button
"
[id]
="
buttonId
"
[attr.role]
="
isSingleSelector() ? 'radio' : 'button'
"
[attr.tabindex]
="
disabled && !disabledInteractive ? -1 : tabIndex
"
[attr.aria-pressed]
="
!isSingleSelector() ? checked : null
"
[attr.aria-checked]
="
isSingleSelector() ? checked : null
"
[disabled]
="
(disabled && !disabledInteractive) || null
"
[attr.name]
="
_getButtonName()
"
[attr.aria-label]
="
ariaLabel
"
[attr.aria-labelledby]
="
ariaLabelledby
"
[attr.aria-disabled]
="
disabled && disabledInteractive ? 'true' : null
"
(click)
="
_onButtonClick()
"
>
@if (buttonToggleGroup && (
!buttonToggleGroup.multiple && !buttonToggleGroup.hideSingleSelectionIndicator ||
buttonToggleGroup.multiple && !buttonToggleGroup.hideMultipleSelectionIndicator)
) {
<
div
class
="
mat-button-toggle-checkbox-wrapper
"
>
<
mat-pseudo-checkbox
[disabled]
="
disabled
"
state
="
checked
"
aria-hidden
="
true
"
appearance
="
minimal
"
/>
</
div
>
}
<
span
class
="
mat-button-toggle-label-content
"
>
<
ng-content
>
</
ng-content
>
</
span
>
</
button
>
<
span
class
="
mat-button-toggle-focus-overlay
"
>
</
span
>
<
span
class
="
mat-button-toggle-ripple
"
matRipple
[matRippleTrigger]
="
button
"
[matRippleDisabled]
="
disableRipple || disabled
"
>
</
span
>
Back
|
FazBrowse Home
|
New Git URL