Find out if a selected item in ExtJs ina Ext.panel.tree has a child

限于喜欢 提交于 2019-12-11 17:34:42

问题


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.


回答1:


The instance returned by tree_dir.getSelectionModel().getSelection() should have hasChildNodes() method specifically for that purpose.



来源:https://stackoverflow.com/questions/13608736/find-out-if-a-selected-item-in-extjs-ina-ext-panel-tree-has-a-child

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!