Home > Advanced Programming Techni... > Implementing Plug-ins > Adding Events to a Plug-in
Previous |
Next |
Adding events to an item, region or dynamic action type plug-in, allows them to be exposed to dynamic actions. For example, a Slider plug-in that exposes events such as Start Slide, Sliding, and Stop Slide, allows the creation of dynamic actions that can react when these events occur.
To add events to a plug-in:
Navigate to the Plug-ins page. See Accessing Plug-ins.
Click the plug-in you want to edit.
The Plug-in Create/Edit page appears.
Scroll down to Events and click Add Event.
A new row displays under Events.
Under Events, specify the following:
Name - The display name under which the plug-in event should show up in the dynamic action, for example: Start Slide
.
Internal Name - The name of the assigned JavaScript event that triggers the dynamic action, for Example: slidestart
.
Click Apply Changes.