Script Examples
Emit Functionality
Emit Example: Download ezUI File
Candidate Component: Download ezUI File
In this example, we illustrate how to use the emit functionality to handle user interactions within a Candidate Component. Users can input data such as first and last names and select a headshot. The system listens for changes in these fields and dynamically updates the component's data, emitting a 'candidateChange' event with the new information.
-
The first step is to create a 'Candidate' component, in order to do this:
- press the
UI Manager
button - go to the Components section
- press
+
and type in the component name - press
Create
and thenOpen
.
- press the
-
Import the
Candidate.ezui
file, then save the created component. - Duplicate the Studio window, open some template.
- Import the
Emit Example.ezui
file. - In the Components section press
Add component
button. - Choose the component you have just created, press
Update
. - In the Components list find your component (it is in the bottom of the list), drag&drop it to the appropriate section, and delete the excessive one component instead of it.
- Instead of
nameControl
in the script, please type theName of your Component
and pressSave
.
This ensures that the component reflects the latest user input in real-time. The design ensures smooth user interactions, with updates happening instantly as data changes are detected.
Emit Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|