[pve-devel] how to get currently selected node in ExtJS?

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Mon Apr 22 06:29:56 CEST 2013


Am 22.04.2013 um 06:10 schrieb Dietmar Maurer <dietmar at proxmox.com>:

>> How to get currently selected node in ExtJS?
>> 
>> I tried stuff like:
>> Ext.get('PVE.tree.ResourceTree')
>> PVE.tree.ResourceTree.getSelection()[0]
> 
> AFAIK there is no such functionality, because it was not needed so far.
> 
> The question is why you need that?
> 

All people i was talking to wanted the node they're currently selected to be preselected in the create wizard. They all created vms on the wrong nodes ;-)

Stefan



More information about the pve-devel mailing list