Артем 18 Posted April 9, 2020 Share Posted April 9, 2020 Hello! How I can change color of UniBUttonWidget? Is it possible? Quote Link to post Share on other sites
Sherzod 1183 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 post Share on other sites
Sherzod 1183 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 post Share on other sites
Артем 18 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 post Share on other sites
easegura777 4 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 post Share on other sites
Sherzod 1183 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 post Share on other sites
easegura777 4 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 post Share on other sites
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.