I have a menu and items in the menu that I assign a name to (because the text is dynamic):
<div id="#mm" class="easyui-menu">
<div data-options="name:'open'">Open document</div>
<div data-options="name:'delete'">Delete document</div>
</div>
But how can I enable/disable these entries by their name? The findItem method only finds them if I pass in the text (e.g. 'Open document'), but it won't find them if I pass in 'open'. And the enableItem/disableItem methods don't take the name as arguments, either. Am I missing something?