Jump to content

UniSegmentedButton


picyka

Recommended Posts

I would like to be able to color the background of an item

event: UniFrameReady
code:

 

with UniSegmentedButtonOpcoes do
  begin
    JSInterface.JSCall('setTooltip', ['Teste'], Items[0].JSMenuItem);    
    JSInterface.JSCall('setStyle', ['background-color', '"#dc3545"'], Items[0].JSMenuItem);
  end;

 

 

Link to comment
Share on other sites

3 horas atrás, picyka disse:

Gostaria de poder colorir o plano de fundo de um evento de

item: código UniFrameReady
:


 

with UniSegmentedButtonOpcoes do
  begin
    JSInterface.JSCall('setTooltip', ['Teste'], Items[0].JSMenuItem);    
    JSInterface.JSCall('setStyle', ['background-color', '"#dc3545"'], Items[0].JSMenuItem);
  end;

 

 

I found the error.

JSInterface.JSCall('setStyle', ['background-color', '#dc3545'], Items[4].JSMenuItem);

delete "".

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...