artem_niko Posted April 9, 2020 Share Posted April 9, 2020 Hello! How I can change color of UniBUttonWidget? Is it possible? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 9, 2020 Share Posted April 9, 2020 22 minutes ago, Артем said: How I can change color of UniBUttonWidget? Is it possible? Hello, I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 9, 2020 Share Posted April 9, 2020 1 hour ago, Артем said: How I can change color of UniBUttonWidget? Is it possible? For example without the "hover" effect: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var widgetColIndx = 1; columns[widgetColIndx].onWidgetAttach = function(column, widget, record) { widget.setStyle('border-color', 'green'); widget.setStyle('background-image', 'linear-gradient(lime, green)'); }; } 2 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted April 9, 2020 Author Share Posted April 9, 2020 1 hour ago, Sherzod said: For example without the "hover" effect: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var widgetColIndx = 1; columns[widgetColIndx].onWidgetAttach = function(column, widget, record) { widget.setStyle('border-color', 'green'); widget.setStyle('background-image', 'linear-gradient(lime, green)'); }; } Excellent! Working fine! 1 Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 2, 2020 Share Posted August 2, 2020 On 4/9/2020 at 1:53 AM, Sherzod said: For example without the "hover" effect: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var widgetColIndx = 1; columns[widgetColIndx].onWidgetAttach = function(column, widget, record) { widget.setStyle('border-color', 'green'); widget.setStyle('background-image', 'linear-gradient(lime, green)'); }; } Hi, in TuniDBEdit where do i add this code, the funcion reconfigure, it´s not in ClientEvents -> ExtEvents Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 2, 2020 Share Posted August 2, 2020 1 hour ago, easegura777 said: in TuniDBEdit where do i add this code Hi, Sorry, can you please explain what you wanted? Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 2, 2020 Share Posted August 2, 2020 5 hours ago, Sherzod said: Hi, Sorry, can you please explain what you wanted? Hi, in TuniDBEdit where do i add this code, the funcion reconfigure, it´s not in ClientEvents -> ExtEvents Quote Link to comment Share on other sites More sharing options...
mikromundo Posted March 28, 2022 Share Posted March 28, 2022 @Sherzod how can I change with CSS only ? I try to find the "class" equivalent but I can not. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2022 Share Posted March 28, 2022 1 hour ago, mikromundo said: how can I change with CSS only ? Hello @mikromundo Could you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
mikromundo Posted March 28, 2022 Share Posted March 28, 2022 this is the class i find... but if I try to create something like: .new-btn-widget .x-btn-default-small{ background: blue; } if I apply "new-btn-widget" class it doesn't work. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2022 Share Posted March 28, 2022 1 hour ago, mikromundo said: this is the class i find... You can try also this approach: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var widgetColIndx = 1; columns[widgetColIndx].onWidgetAttach = function(column, widget, record) { widget.addCls('customBtn'); }; } Quote Link to comment Share on other sites More sharing options...
mikromundo Posted March 28, 2022 Share Posted March 28, 2022 good...I will try Quote Link to comment Share on other sites More sharing options...
loQsoft Posted October 17, 2022 Share Posted October 17, 2022 On 4/9/2020 at 10:53 AM, Sherzod said: For example without the "hover" effect: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var widgetColIndx = 1; columns[widgetColIndx].onWidgetAttach = function(column, widget, record) { widget.setStyle('border-color', 'green'); widget.setStyle('background-image', 'linear-gradient(lime, green)'); }; } Hello @SherzodSherzod, Where do I put this code? Best Regards, Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 18, 2022 Share Posted October 18, 2022 51 minutes ago, loQsoft said: Hello @SherzodSherzod, Where do I put this code? Best Regards, Hello Unidbgrid -> ClientEvents-> ExtEvents -> reconfigure 1 Quote Link to comment Share on other sites More sharing options...
loQsoft Posted October 18, 2022 Share Posted October 18, 2022 8 minutes ago, Hayri ASLAN said: Hello Unidbgrid -> ClientEvents-> ExtEvents -> reconfigure Thank you very much @Hayri ASLAN Best Regards, Quote Link to comment Share on other sites More sharing options...
loQsoft Posted October 18, 2022 Share Posted October 18, 2022 11 minutes ago, Hayri ASLAN said: Hello Unidbgrid -> ClientEvents-> ExtEvents -> reconfigure it is possible to change font color of uniButtonWidget ? Best Regards, Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 18, 2022 Share Posted October 18, 2022 8 minutes ago, loQsoft said: it is possible to change font color of uniButtonWidget ? Best Regards, Hello Please add below line widget.btnInnerEl.setStyle('color','red'); 1 Quote Link to comment Share on other sites More sharing options...
loQsoft Posted October 18, 2022 Share Posted October 18, 2022 1 minute ago, Hayri ASLAN said: Hello Please add below line widget.btnInnerEl.setStyle('color','red'); Thank you very much. Best Regards, 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.