Jump to content

Recommended Posts

Posted
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
Posted
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
  • 3 months later...
Posted
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 

Posted
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 

  • 1 year later...
Posted

image.png.6e419865c9aace15600999deff018f68.png

 

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.

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

 

  • 6 months later...
Posted
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,

 

Posted
11 minutes ago, Hayri ASLAN said:

Hello

Unidbgrid -> ClientEvents-> ExtEvents ->  reconfigure

it is possible to change font color of uniButtonWidget ?

Best Regards,

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

 

  • Like 1
Posted
1 minute ago, Hayri ASLAN said:

Hello

Please add below line

widget.btnInnerEl.setStyle('color','red');

 

Thank you very much.

 

Best Regards,

 

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...