md-list-item disabled property
See original GitHub issueBug, feature request, or proposal:
Proposal
What is the expected behavior?
Angular material2 list [disabled] item. An option to bind [disabled]
to md-list-item
in order to disable it (same as how the button disabled property works).
What is the current behavior?
no [disabled] property binding with md-list-item
What is the use-case or motivation for changing an existing behavior?
A list is not a button, but used for navigation and accessing data. [disabled] property can be very useful in such cases.
Which versions of Angular, Material, OS, browsers are affected?
All
Issue Analytics
- State:
- Created 7 years ago
- Reactions:9
- Comments:11 (6 by maintainers)
Top Results From Across the Web
md-list-item disabled property · Issue #763 - GitHub
An option to bind [disabled] to md-list-item in order to disable it (same as how the button disabled property works).
Read more >How to use disabled property on mat-list-item in angular 6?
The pointer-events CSS property specifies under what circumstances (if any) a particular graphic element can become the target of mouse ...
Read more >List - KivyMD 1.1.1 documentation
Lists are continuous, vertical indexes of text or images. ... The class MDList in combination with a BaseListItem like OneLineListItem will create a...
Read more >invalid prop: type check failed for prop "disabled". expected boolean ...
The problem is that you're setting the disabled prop to a function, instead of to the results of that ... <MdList> at src/components/MdList/MdList.vue....
Read more >Disabling XamDataGrid XamComboEditor field in MVVM way
I need to be able to make a XamDataGrid XamComboEditor read only in mvvm way through binding to a boolean property in a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This makes a lot of sense to me. I have a md-nav-list and being able to disable some options depending on account settings seems appropriate. I think this would function the same as md-menu.
I understand that the native anchor element has no
disabled
attribute but its hard to follow whya[mat-button]
anda[mat-menu-item]
usedisabled
input buta[mat-list-item]
does not.