does anyone know a way to find out, in ExtJS if a selected item in an Ext.tree.Panel has a child? I know you can find a selected item by doing tree_dir.getSelectionModel().getSelection() but I don’t see any way to check if it has any children.
does anyone know a way to find out, in ExtJS if a selected item
Share
The instance returned by
tree_dir.getSelectionModel().getSelection()should havehasChildNodes()method specifically for that purpose.