Some of the widgets support event logic. In Blockly, you can edit the logic functions for the widgets that you created in Designer.
The operation interface of Blockly is as follows:
You can find the available widgets in Widgets Variables under the UI controls category.
For specific operations of Blockly, please refer to 8ms Blockly manual.
After editing it, click Save to return to the UI editor.