Jump to content

Align text in caption in UniButtonWidget


artem_niko

Recommended Posts

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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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. 

Link to comment
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...