Point Posted March 20, 2021 Share Posted March 20, 2021 hello, is possible to display fontawesome in unipanel caption ? for example : unipanel1.caption := '<i class="fas fa-info-circle"></i> Information' thanks you. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 20, 2021 Share Posted March 20, 2021 1 hour ago, Popo said: hello, is possible to display fontawesome in unipanel caption ? for example : unipanel1.caption := '<i class="fas fa-info-circle"></i> Information' thanks you. Hello, This post may help you: Quote Link to comment Share on other sites More sharing options...
Point Posted March 20, 2021 Author Share Posted March 20, 2021 hi sherzod, not work both on form or frame. on form ready : procedure TMainForm.UniFormReady(Sender: TObject); begin with UniPanel1 do begin Caption := '<i class="fas fa-info-circle fa-fw"></i> Information'; JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+ Caption +'");'); end; end; on frame ready: procedure TfmLoginPeserta.UniFrameReady(Sender: TObject); begin with UniPanel1 do begin Caption := '<i class="fas fa-info-circle"></i> Information'; JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+ Caption +'");'); end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 20, 2021 Share Posted March 20, 2021 2 hours ago, Popo said: not work both on form or frame. Try this: procedure TMainForm.UniFormReady(Sender: TObject); begin with UniPanel1 do begin Caption := '<i class=\"fas fa-info-circle\"></i> Information'; JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+ Caption +'");'); end; end; Quote Link to comment Share on other sites More sharing options...
Point Posted March 21, 2021 Author Share Posted March 21, 2021 work great, thanks you. 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.