Cross Reference: uievents.html
xref
: /
yui3
/
src
/
widget
/
tests
/
manual
/
uievents.html
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
0
N/A
<!
DOCTYPE
html
>
2724
N/A
<
html
>
0
N/A
<
head
>
0
N/A
<
title
>Widget uiEvents</
title
>
0
N/A
</
head
>
0
N/A
<
body
>
2362
N/A
<
script
src=
"/
build
/
yui
/
yui.js
"
></
script
>
0
N/A
<
script
>
2362
N/A
YUI({filter:"raw"}).use("widget", function(Y) {
0
N/A
var w = new
Y.Widget
({
0
N/A
width:200,
0
N/A
height:200
0
N/A
}),
0
N/A
0
N/A
h = function(e) {
Y.log
(
e.type
); };
0
N/A
0
N/A
w.get
("contentBox").append("Some Content For My Widget");
0
N/A
0
N/A
w.on
({
0
N/A
"click": h,
2362
N/A
"render": h,
2362
N/A
"renderedChange": h
2362
N/A
});
0
N/A
0
N/A
w.on
("widget:mouseup", h);
0
N/A
w.on
("foo|widget:mouseup", h);
0
N/A
w.on
("mouseup", h);
0
N/A
0
N/A
w.after
("widget:mouseup", h);
0
N/A
w.after
("foo|widget:mouseup", h);
2328
N/A
w.after
("mouseup", h);
2328
N/A
2328
N/A
w.after
({
2328
N/A
"mousedown" : h,
2328
N/A
"render" : h
2328
N/A
});
2328
N/A
2328
N/A
w.render
();
2328
N/A
});
2328
N/A
</
script
>
2328
N/A
</
body
>
2328
N/A
</
html
>