question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

md-list-item disabled property

See original GitHub issue

Bug, 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:closed
  • Created 7 years ago
  • Reactions:9
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
monealcommented, Aug 3, 2017

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.

3reactions
william-lohancommented, May 3, 2018

I understand that the native anchor element has no disabled attribute but its hard to follow why a[mat-button] and a[mat-menu-item] use disabled input but a[mat-list-item] does not.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found