Is it possible to disable a Wijmo menu item?
I have the following fiddle, and I'd like to disable a menu option (either a branch or a leaf) if the user doesn't have a certain permission. I've tried setting the <li>
and the <a>
tags of the node to have the disabled
attribute. I've tried setting disabled='disabled'
and disabled='true'
and disabled=true
, but can't get the menu item to disable.
The API for the menu component doesn't seem to have a method to disable an item, so I'm assuming I would just disable the element in the DOM.
In my fiddle, there is a leaf (Politics -- the second node under the first parent Breaking News) that has a URL associated to it. I'd like to be able to disable this item.
Is it possible to disable a Wijmo menu item? If so, how?
Thank you in advance!