gdn Posted July 4, 2016 Posted July 4, 2016 Hi, http://jsfiddle.net/33rX6/ As can be seen in the example in the "homework" effect one is presented "animCollapse". http://docs.sencha.com/extjs/4.2.5/#!/api/Ext.tree.Panel-cfg-animCollapseBut I do not know why the TreeView version of 99.95.1300 UniGUI there is no such effect or a property to activate it.I've tried manually add the "ClientEvents" (affterrender, beforeRender, beforeinit and aftercreate), most did not work.How and what would be the correct place to put this effect? It apparently seems to be the default ExtJS but UniGUI not have. Quote
Sherzod Posted July 4, 2016 Posted July 4, 2016 Hi, For now try: UniTreeView1->ClientEvents->UniEvents... beforeInit fn: function beforeInit(sender, config) { config.collapsible = true; config.title = "Tree..."; } Best regards. Quote
gdn Posted July 4, 2016 Author Posted July 4, 2016 Thanks for answering Delphi Developer, But this way the effect was added to all TreeView (As shown the red square in the picture)I would like to apply the effect on TreeNodes father, as the node "First" (green square in the picture) and not on the TreeView itself.Example of how was the way you said on the download link below. https://mega.nz/#!og4EBYqK!lHacgT_MbyxfaPbysAvy2rwy742s-2ZcTofEaPOZP-c Quote
Sherzod Posted July 4, 2016 Posted July 4, 2016 Then try: function beforeInit(sender, config) { config.enableAnimations = true; } 1 Quote
gdn Posted July 4, 2016 Author Posted July 4, 2016 Thanks again Delphi Developer.It was exactly what I wanted!It has somewhere or documentation that you can see these options? As "enableAnimations" did not know this property. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.