WillemvanZyl Posted January 11, 2018 Share Posted January 11, 2018 Hi,I want to just set a label to be underlined.s := 'document.getElementById("' + lbForgotPass.JSName + '_id").style.textDecoration = "underline"UniSession.AddJS(s);Does not work. any help?<PS. having these properties exposed in Delphi in the future would be really greatKind Regards Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2018 Share Posted January 11, 2018 Hi, UniLabel -> Font -> Style -> [fsUnderline] ?! Link to comment Share on other sites More sharing options...
WillemvanZyl Posted January 11, 2018 Author Share Posted January 11, 2018 The .Font Property is not exposed in Mobile? Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2018 Share Posted January 11, 2018 Sorry, For mobile, one possible solution, for example: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimLabel1.JSInterface.JSCall('element.setStyle', ['text-decoration', 'underline']); end; Link to comment Share on other sites More sharing options...
WillemvanZyl Posted January 11, 2018 Author Share Posted January 11, 2018 That works, thanks :-) Link to comment Share on other sites More sharing options...
Recommended Posts