node
:
1 2 3 |
while(node.firstChild) { node.removeChild(node.firstChild); } |
Latest posts by saki (see all)
- Ext, Angular, React, and Vue - June 27, 2019
- The Site Resurgence - February 11, 2018
- Configuring ViewModel Hierarchy - June 19, 2015
are you the maker of the extjs wordpress template?
i like it and i see the features of 2.0?
is this still under development??
greets
No, I haven’t made Ext WordPress theme.
Nice! I was looking for this, thanks.
Awesome, really helped me, thanks!
while(node.firstChild && node.firstChild.remove());
Very interesting and informative site! Good job done by you guys, Thanks
This works, thanks. Love your site!
Just to bring to ppls attention, there’s a new removeAll method on the tree node. Looks like its only in version 3.2 and not 3.1 (worked that out the hard way). removeChild also doesn’t work in 3.1 but fixed in 3.2.
Hi, I am trying to remove the nodes like in your example and than add them again. Firstly I have a memory leak after that, and also sometimes i have an awfull “this.target is null
error source line: [Break on this error] Ext.ToolTip=Ext.extend(Ext.Tip,{showDe…ithin(this.target.dom,true)){return;}” error );
Thanks mate, saved my day…
— Anish Sneh
Ext.getCmp(‘treeid’).getRootNode().removeAll();
use without the backslash in the getCmp
thankyou!!!!!!!
When i remove all children the icon of folder change, how can i do to avoid this?