picyka Posted November 22, 2022 Share Posted November 22, 2022 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; Quote Link to comment Share on other sites More sharing options...
picyka Posted November 22, 2022 Author Share Posted November 22, 2022 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 "". Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 23, 2022 Share Posted November 23, 2022 11 hours ago, picyka said: I found the error. Okay 👍 1 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.