The widget requires a well-structured block of elements. Various parts of the block will be discovered by the widget. Here's an example of some existing markup:
The editor requires three DOM elements to work correctly:
yui3-activator-act
class.
A node that will raise a 'click' event triggering the
"act" event, which your custom code will listen for.
yui3-activator-data-box
class.
If the activator opens an editor, the new value will be dumped here
by the renderSuccess(data_node, message_node)
method.
yui3-activator-message-box
class.
Any status change can display a new message, for example,
the renderCancellation(message_node)
method.
"act" : |
This event is fired when the element with the
yui3-activator-act CSS class is clicked.
|