Jump to content
uniGUI Discussion Forums
WillemvanZyl

Underline a label

Recommended Posts

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 great

Kind Regards

Share this post


Link to post
Share on other sites

Sorry,

 

For mobile, one possible solution, for example:

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  UnimLabel1.JSInterface.JSCall('element.setStyle', ['text-decoration', 'underline']);
end;

Share this post


Link to post
Share on other sites

×