mos Posted November 17, 2017 Author Share Posted November 17, 2017 Hi Delphi Developer, I have decided to use a different JQuery plugin https://www.jqueryscript.net/text/Versatile-Responsive-Text-Truncation-Plugin-For-jQuery-Truncate-js.html As the output from this one was exactly what I wanted. I changed the code you gave me above to: UniLabel1.JSInterface.JSCode('Ext.defer(function(){$($("#"+'#1'.id)[0]).truncate({lines:2})},50);'); However this didn't work. Can you see why the above code doesn't work for the new plugin? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2017 Share Posted November 17, 2017 Hi, I changed the code you gave me above to: UniLabel1.JSInterface.JSCode('Ext.defer(function(){$($("#"+'#1'.id)[0]).truncate({lines:2})},50);'); However this didn't work. This code uses the Ext.defer function,try to increase the value 50 to 100, 200, 300... 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.