Jump to content

UniPopUp: Change Font Style/Color/Size for An Individual Item In Code At Runtime - How ?


andyhill

Recommended Posts

I have a PopUp with many elements and would like to draw the user's attention to a few items in the list via the Item's Font Color/Size/Style dynamically at runtime (logic varies so highlights vary) - please advise - Thanks in advance.

Link to comment
Share on other sites

15 hours ago, andyhill said:

I have a PopUp with many elements and would like to draw the user's attention to a few items in the list via the Item's Font Color/Size/Style dynamically at runtime

image.png.ce7cabf6af03797028e4a399420cfe7f.png

.customCls .x-menu-item-text {
  color: green;
  font-weight: bold;
}
procedure TMainForm.UniFormReady(Sender: TObject);
begin
  JSInterface.JSCall('addCls', ['customCls'], UniPopupMenu1.Items[0].JSMenuItem);
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...