You can set conditions and call an event for an element from the Events tab.

To create an event:

  1. Select the element for which you want to create an event.
  2. From the Event drop-down, select an event.
  3. From the Function drop-down, select a function.
  4. Click Add.