UniGui. Unique hybrid of Delphi and JS

Today I stumbled upon an interesting feature in UniGui – to handle component events using JavaScript, and specifically using functions from the ExtJS library. Let’s look at a simple example. Let’s open the UniGui project in Delphi and add 2 UniButton1 and UniEdit1 elements to the form
Now, in the object inspector, find ExtEvents
Next, click 2 times on the empty field next to the click event, and the system itself will give us the code

Thus, how to access a particular element through JS from Delphi?
Select the element on which we will work (for example, the UniButton1 button in our example)
Open Object Inspector in Delphi
Find ClientEvents, then ExtEvents
Next, select the event that we will process, for example click, then click 2 times on the empty field next to it – a function template will appear, for example, for the click event
