The flex container has dimensions, say 300*300 pixels. Is it possible to somehow simply achieve in the Wappler that when the button is pressed, the dynamic action of the container does not work? I know how to achieve this with ordinary JS, but I would prefer to use the Wappler solution, if there is one.
Thank you for your help Teodor. But I don’t quite understand the logic, can you explain? The variable with the value 222 is given only as an example, any other dynamic event can be on the button when clicked, for example, the opening of another modal window.
Well you can use a toggle component for this also, along with the dynamic event(s) on button click, on click toggle it.
In the flow for the div check the toggle state - if toggled, don’t run any event, if not toggled - run whatever events you need.
The logic is clear, but this creates excessive complexity and unreasonable congestion in the code. It is necessary to create a switch variable and monitor its state for all related events. Because of this, you can easily forget what is connected with it when the interface changes even a little. It would be very cool if in a dynamic click event it was possible to access the context of the call in order to pass get the id of the element that was clicked. Then the whole solution would be extremely simple and not requiring the creation of unnecessary, heavilywork controlled code. Something like this: