jahlxx Posted November 20, 2017 Share Posted November 20, 2017 Hi. Is posible to fill fieldlabels with dots, from the end of the text to the fieldlabel separator? i.e. My Label..............:[uNIEDIT] Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 20, 2017 Share Posted November 20, 2017 Hi, We will try to find a solution Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 20, 2017 Share Posted November 20, 2017 In your case,FieldLabel is static or will you change it dynamically ? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted November 20, 2017 Author Share Posted November 20, 2017 In your case, FieldLabel is static or will you change it dynamically ? static Enviado desde mi SM-A500FU mediante Tapatalk Quote Link to comment Share on other sites More sharing options...
mhmda Posted November 21, 2017 Share Posted November 21, 2017 It doesn't make any sense at least from the front-end point of view. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted November 21, 2017 Author Share Posted November 21, 2017 It doesn't make any sense at least from the front-end point of view. Sorry. I don't understand. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 21, 2017 Share Posted November 21, 2017 Hi, Can you try this approach ?!: UniEdit -> ClientEvents -> ExtEvents -> afterrender fn: function afterrender(sender, eOpts) { var me = sender; if (me.isFieldLabelable) { var tm = new Ext.util.TextMetrics(); _width = tm.getSize(me.getFieldLabel()).width + me.labelPad; _style = "bottom:4px;border-bottom:1px dotted #777;padding-right:0px;content:'';"; me.setFieldLabel(me.fieldLabel + '<span id="' + me.id + '_dots" style="' + _style + '"></span>'); Ext.defer(function() { me.el.select('#' + me.id + '_dots').elements[0].style["padding-right"] = (me.labelWidth - _width); }, 100); }; } Best regards, Quote Link to comment Share on other sites More sharing options...
jahlxx Posted November 21, 2017 Author Share Posted November 21, 2017 Great!! Thanks. It works. 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.