Jump to content

Recommended Posts

Posted

Hello!

How make align text in caption in UniButtonWidget by left? 

As default, text aligning by center. I want align by left.

Tag

<div align="left">Б:</div>

in not wirking.

Posted
22 minutes ago, Артем said:

How make align text in caption in UniButtonWidget by left? 

Hello,

Do you want something like this?

UniDBGrid1.ClientEvents.ExtEvents ->

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
    var widgetColIndx=1;
    columns[widgetColIndx].onWidgetAttach = function(column, widget, record) {
        widget.setTextAlign('left');
    };
}

 

Posted
On 3/26/2020 at 8:12 PM, Sherzod said:

Hello,

Do you want something like this?

UniDBGrid1.ClientEvents.ExtEvents ->


function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
    var widgetColIndx=1;
    columns[widgetColIndx].onWidgetAttach = function(column, widget, record) {
        widget.setTextAlign('left');
    };
}

 

No, it's not working:

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
   var widgetColIndx=1;
    columns[widgetColIndx].onWidgetAttach = function(column, widget, record) 
    {
        widget.setTextAlign('left');
    };
    if (columns[0].xtype && columns[0].xtype == 'rownumberer') 
    {
        columns[0].width = 55;
    }
}

 

Posted
6 minutes ago, Sherzod said:

If possible, make a simple testcase to check.

I already write testcase and put him here. You can take any you Project and repeat testcase, set DisplayMemo, and you will see. 

Posted
18 hours ago, Артем said:

No, it's not working:

The solution that I showed works for me, and you say that it does not work for you. So, without a test case, to continue the discussion is useless.

Posted
3 minutes ago, Sherzod said:

The solution that I showed works for me, and you say that it does not work for you. So, without a test case, to continue the discussion is useless.

I will Sorry... Talk about DisplayMemo not for this Theme... I'm wrang. 

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