-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/listfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix
Description
Bug, feature request, or proposal:
Feature Request
What is the expected behavior?
The ability to specify whether or not the md-selection-list
supports multiple value selection. I see a few different implementation options:
- Expose a
multiple
attribute onmd-selection-list
.- When present render each option as a
checkbox
, otherwise render asradio
buttons. - This would be a breaking change as the current behavior is to use check boxes by default.
- When present render each option as a
- Expose a
type
attribute onmd-selection-list
.- Possible values (for now) would include
checkbox
(default) andradio
.
- Possible values (for now) would include
- Expose more specialized
md-list-option
components. exmd-list-radio-option
.- Behavior of mixing checkbox and radio list options? Would probably be clunky.
What is the current behavior?
md-selection-list
always renders each child md-list-option
as a checkbox.
What is the use-case or motivation for changing an existing behavior?
MdSelectionList
is a good starting point for building generic Q&A style wizards/walkthroughs, but you are immediately limited in control over valid option selections. Having the ability to limit user selection to a single list option, presented using radio buttons, seems like it would be a reasonable extension of current behavior.
sdornan, rokikon, mpeguero, EdricChan03, MurhafSousli and 23 more
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/listfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix