Closed
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.