Skip to content

[MdSelectionList] single selection (radio) option #7157

Closed
@marshall007

Description

@marshall007

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 on md-selection-list.
    • When present render each option as a checkbox, otherwise render as radio buttons.
    • This would be a breaking change as the current behavior is to use check boxes by default.
  • Expose a type attribute on md-selection-list.
    • Possible values (for now) would include checkbox (default) and radio.
  • Expose more specialized md-list-option components. ex md-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An 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 fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions