~bjornt/lazr-js/prefetch-yui-3.5

« back to all changes in this revision

Viewing changes to examples/activator/index.html

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-03-16 00:14:15 UTC
  • mfrom: (204.2.4 activator-flash-node)
  • Revision ID: launchpad@pqm.canonical.com-20110316001415-jnlqxpl4ix5n10av
[r=deryck][bug=735832] Add support to the Activator for a custom
        animation node to be specified for success, failure or cancellation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    var activator = new Y.lazr.activator.Activator(
36
36
        {contentBox: content_box});
37
37
 
 
38
    // Optionally, it's possible to specify a custom node to animate on
 
39
    // success, failure, or cancellation. The default is to use the
 
40
    // content_box but depending on the HTML inside the content box, we may
 
41
    // need to specify a different node to get the required animation.
 
42
    //var activator = new Y.lazr.activator.Activator(
 
43
    //    {contentBox: content_box, animationNode: custom_node});
 
44
 
38
45
    activator.subscribe('act', function (e) {
39
46
        editor.setStyle('visibility', 'visible');
40
47
    });
221
228
 
222
229
</ul>
223
230
 
 
231
<p>Optionally, these DOM elements can be specified:</p>
 
232
 
 
233
<ul>
 
234
  <li><strong>Animation node:</strong>
 
235
    A node that is animated on success, failure, or cancellation. The default
 
236
    is to use the content box node.
 
237
  </li>
 
238
</ul>
 
239
 
224
240
<h3>Custom events</h3>
225
241
 
226
242
<table>