The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 1 more by this user. Created: 08/30/10
Last CDN Push: 09/1/10
Build Tag: gallery-2010.09.01-19-12
Project: YUI 3
License: YUI BSD
YUI Version: 3.1.2
Free for use.
Simple OSX-like toggle widget.
<script src="http://yui.yahooapis.com/3.1.2/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.09.01-19-12'
}).use('gallery-toggle', function(Y) {
var mytoggle = new Y.Toggle({
srcNode: "#mytoggle",
label: "Options"
});
mytoggle.after('selectedChange', function (e) {
Y.log("Toggled " + mytoggle.get('selected') + "!");
});
mytoggle.render();
});
No forum posts for this module.
All code on this site is licensed under the BSD License unless stated otherwise.