getrootnode()(2)
-
Sencha treepanel의 모든 row 가져오기
getRootNode() 사용var tree = Ext.getCmp('treePanelId'); // Replace with your TreePanel IDvar store = tree.getStore();var allNodes = [];store.getRootNode().cascadeBy(function(node) { allNodes.push(node);});// Output all nodesconsole.log(allNodes);
2024.12.21 -
Sencha treepanel의 모든 node 펼치기
treepanel의 함수 사용var treePanel = Ext.ComponentQuery.query('treepanel')[0]; // Get your TreePanel instanceif (treePanel) { treePanel.expandAll(); // Expand all nodes console.log('All nodes have been expanded.');}store를 이용var treePanel = Ext.ComponentQuery.query('treepanel')[0]; // Get your TreePanel instancevar store = treePanel.getStore(); // Get the TreeStorestore.getRootNode().cascadeBy(f..
2024.12.05