~bcsaller/juju-gui/charmFind

« back to all changes in this revision

Viewing changes to lib/yui/tests/widget/tests/manual/uievents.html

  • Committer: kapil.foss at gmail
  • Date: 2012-07-13 18:45:59 UTC
  • Revision ID: kapil.foss@gmail.com-20120713184559-2xl7be17egsrz0c9
reshape

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html>
2
 
<html>
3
 
    <head>
4
 
        <title>Widget uiEvents</title>
5
 
    </head>
6
 
    <body>
7
 
        <script src="../../../../build/yui/yui.js"></script>
8
 
        <script>
9
 
            YUI({filter:"raw"}).use("widget", function(Y) {
10
 
                var w = new Y.Widget({
11
 
                    width:200,
12
 
                    height:200
13
 
                }),
14
 
 
15
 
                h = function(e) { Y.log(e.type); };
16
 
 
17
 
                w.get("contentBox").append("Some Content For My Widget");
18
 
 
19
 
                w.on({
20
 
                    "click": h,
21
 
                    "render": h,
22
 
                    "renderedChange": h
23
 
                });
24
 
 
25
 
                w.on("widget:mouseup", h);
26
 
                w.on("foo|widget:mouseup", h);
27
 
                w.on("mouseup", h);
28
 
 
29
 
                w.after("widget:mouseup", h);
30
 
                w.after("foo|widget:mouseup", h);
31
 
                w.after("mouseup", h);
32
 
 
33
 
                w.after({
34
 
                    "mousedown" : h,
35
 
                    "render" : h
36
 
                });
37
 
 
38
 
                w.render();
39
 
            });
40
 
        </script>
41
 
    </body>
42
 
</html>
 
 
b'\\ No newline at end of file'