Skip to content

[MdSelectionList/MatListOption] Add readonly support for items #17141

@diosney

Description

@diosney

Feature Description

Right now only disabled is supported for items, which excludes the option if they were previously selected from the final result.

With readonly, the items wouldn't be able to be interacted with but if they were previously checked, then they make it to the final result.

Use Case

To have selection list with items visually stylized as readonly that cannot be checked/unchecked due some business conditions.

Reference:

https://material.angular.io/components/list/api#MatListOption

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions