Dav Glass![]()
A simple YUI 3 Gallery badge using the YQL Gallery Module.
Note: this badge is not skinned. It will simply produce an unordered list of modules
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.11.09-01-41'
}).use('gallery-badge', function(Y) {
//Simple Use Case
var node = Y.one('div.badge');
node.plug(Y.Plugin.Badge, {
type: 'oncdn' //popular, new, all, featured
});
node.set('username', 'davglass');
//or
node.set('type', 'popular');
//Event Driven, with No Layout
node = Y.one('div.badge');
node.plug(Y.Plugin.Badge, {
username: 'davglass',
render: false
});
node.badge.on('dataReturned', function(e) {
e.preventDefault();
console.log(e);
});
node.badge.render();
});No forum posts for this module.
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info