robinhodemorais Posted November 15, 2021 Share Posted November 15, 2021 I use Falcon's TUniFSPopup component to create a menu, but I need to adjust the position of the arrow on that menu but dynamically, that is, when I click on a button that will display this popup I need to change the margin-left property of the class's css .x-ux-callout.cartoon.top:after and .x-ux-callout.cartoon.top:before when I click on the button, so when it closes the pop up it's normal so I don't give problems in other places I use, how can i do this at runtime ? .x-ux-callout.cartoon.top:after { margin-left :92px !important; } .x-ux-callout.cartoon.top:before { margin-left :90px !important; } Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted November 16, 2021 Author Share Posted November 16, 2021 Help plis! Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted November 16, 2021 Share Posted November 16, 2021 Hi Robinho, do you need to change the position of this arrow at runtime? https://demos.falconsistemas.com.br/?tela=tfrmpopup Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted November 17, 2021 Author Share Posted November 17, 2021 So as we talked about Marlon when placing the component in the RelativeX property, the arrow that indicates which shortcut the popup belongs to does not position, for that I'll have to move the css but when clicking, I've seen it here on the forum but I haven't found it. Does anyone remember?! it would be the same if clicking a button could change the css of some component at that moment. 4 hours ago, Marlon Nardi said: Hi Robinho, do you need to change the position of this arrow at runtime? https://demos.falconsistemas.com.br/?tela=tfrmpopup Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted November 18, 2021 Author Share Posted November 18, 2021 Help! plis! Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted December 5, 2021 Author Share Posted December 5, 2021 no solution so far 😥 does anyone know how to use the callout manually for me to mount a css for each ? since in unigui there is no way to change the specific css at runtime! Quote Link to comment Share on other sites More sharing options...
mikromundo Posted December 9, 2021 Share Posted December 9, 2021 Veja se lhe ajuda: UniSession.AddJS('$(''.ButtonTheme'').css({ ''border-color'':''#E5770B''})' ); 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.