Jump to content

Change color in UniButtonWidget


Recommended Posts

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)');
    };
}

 

  • Like 2
Link to post
Share on other sites
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! :)

  • Like 1
Link to post
Share on other sites
  • 3 months later...
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 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...