artem_niko Posted March 26, 2020 Share Posted March 26, 2020 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 26, 2020 Share Posted March 26, 2020 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'); }; } Quote Link to comment Share on other sites More sharing options...
artem_niko Posted March 27, 2020 Author Share Posted March 27, 2020 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; } } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2020 Share Posted March 28, 2020 15 hours ago, Артем said: No, it's not working: If possible, make a simple testcase to check. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted March 28, 2020 Author Share Posted March 28, 2020 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2020 Share Posted March 28, 2020 2 hours ago, Артем said: I already write testcase and put him here. Sorry, but I do not see the attached test case. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted March 28, 2020 Author Share Posted March 28, 2020 42 minutes ago, Sherzod said: Sorry, but I do not see the attached test case. By on testcase I mean actions (set DisplayMemo=true and e.t.c.) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2020 Share Posted March 28, 2020 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. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted March 28, 2020 Author Share Posted March 28, 2020 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. Quote Link to comment Share on other sites More sharing options...
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.