-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Initial Toggle Button #517
Conversation
CLAs look good, thanks! |
[checked]="checked" | ||
[disabled]="disabled" | ||
[name]="name" | ||
(change)="onClick()"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally haven't been using the /
at the end of void elements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it from radio, sorry about that! Should there be a space between "
and >
or does it not matter?
All comments addressed. |
value: any; | ||
} | ||
|
||
/** Exclusive selection button toggle group. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd expand this comment to include something like "Behaves like a radio-button group."
} | ||
|
||
md-button-toggle md-icon { | ||
vertical-align: middle; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would we want to do this for all direct children? Or just md-icon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a strong opinion, I just wanted to be safe for this iteration when I wrote that.
* Update comment * Remove unused `_buttonToggles` * Use string literals for button toggle type * Move instantiation into the constructor * Add `isSingleSelection` getter
* Exclusive toggle should deselect all when group value is cleared * Button toggles should be checked when the checkbox is interacted with
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
R: @jelbourn @robertmesserle @kara
This is a start for the toggle buttons. Currently supports exclusive and multiple selection with styles and the disabled state. Exclusive selection has a value which is set to the selected toggle.
Still needs:
Design Doc