masterdeveloper Posted March 21, 2018 Share Posted March 21, 2018 We have an application that uses the mainModule theme "uni_mac_yosemite", I am developing a form where I need to change the images of the items of a UNITreeView, but using this theme it was not possible to set the imageindex, since using the default theme works normally, however I can not change the theme because the whole application already uses this format. Has anyone had this problem and could it help me, whether it has change directly in the source with some property or configuration or if just adding the treatment via JS? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 21, 2018 Share Posted March 21, 2018 Hi, Which build are you using? Quote Link to comment Share on other sites More sharing options...
masterdeveloper Posted March 21, 2018 Author Share Posted March 21, 2018 Hi, Which build are you using? uni-1.0.0.1410 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 21, 2018 Share Posted March 21, 2018 uni-1.0.0.1410 UniTreeView -> ClientEvents -> ExtEvents -> Ext.data.TreeStore[store] -> function store.update: function store.update(sender, record, operation, modifiedFieldNames, eOpts) { var tree=this.treePanel; Ext.defer(function(){ tree.el.select('.x-tree-icon').elements.forEach(function(el){ var _s=el.style['background-image']; if (_s!=''){ el.setAttribute('style', 'background-image:'+_s+' !important') } }); tree.el.select('.x-tree-icon-parent').elements.forEach(function(el){ var _s=el.style['background-image']; if (_s!=''){ el.setAttribute('style', 'background-image:'+_s+' !important') } }); }, 25); } Quote Link to comment Share on other sites More sharing options...
masterdeveloper Posted March 21, 2018 Author Share Posted March 21, 2018 UniTreeView -> ClientEvents -> ExtEvents -> Ext.data.TreeStore[store] -> function store.update: function store.update(sender, record, operation, modifiedFieldNames, eOpts) { var tree=this.treePanel; Ext.defer(function(){ tree.el.select('.x-tree-icon').elements.forEach(function(el){ var _s=el.style['background-image']; if (_s!=''){ el.setAttribute('style', 'background-image:'+_s+' !important') } }); tree.el.select('.x-tree-icon-parent').elements.forEach(function(el){ var _s=el.style['background-image']; if (_s!=''){ el.setAttribute('style', 'background-image:'+_s+' !important') } }); }, 25); } thank you so much Quote Link to comment Share on other sites More sharing options...
brunomf01 Posted March 21, 2019 Share Posted March 21, 2019 I had the same problem with TUniMenuItem. I am trying to change the image (ImageIndex) of a TUniMenuItem from a TUniPopupMenu but in the TUniMenuButton does not refresh the image ... it is only the default defined ... I want to show the option that was clicked ... how would that be? I'm using Version 1.10.0.1466 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 22, 2019 Share Posted March 22, 2019 4 hours ago, brunomf01 said: I'm using Version 1.10.0.1466 Which edition are you using? Quote Link to comment Share on other sites More sharing options...
brunomf01 Posted March 31, 2019 Share Posted March 31, 2019 On 3/22/2019 at 12:11 AM, Sherzod said: Which edition are you using? FMSoft_uniGUI_Complete_Professional_1.10.0.1466 FMSoft_uniGUI_Complete_runtime_1.10.0.1466 FMSoft_uniGUI_Documentation_1.10.0.1466 FMSoft_uniGUI_Theme_Pack_1.10.0.1466 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2019 Share Posted March 31, 2019 Hello, Please adjust your forum email address first: And can you upgrade to the latest version and build? Quote Link to comment Share on other sites More sharing options...
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.