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 4 more by this user. Created: 10/30/12
Last CDN Push: 12/12/13
Build Tag: gallery-2013.12.12-21-06
Project: YUI 3
License: YUI BSD
YUI Version: 3.8.0pr1
Free for use.
Defines a Panel that holds several sugar messages.
YOU NEED TO INCLUDE the class 'yui3-skin-sam' to the body in order to make it work.
There are already some dialogboxes in the library that do a good job. Nevertheless, I found this need, because I wanted to have sugarmethods that were able to:
Once the module is included, ItsaDialog is automaticly delared and bound to Y.Global. This because we don't need multiple instances when using more than one YUI-instance.
There are 7 sugar methods:
ToDo:
<script src="http://yui.yahooapis.com/3.8.0pr1/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2013.12.12-21-06'
}).use('gallery-itsadialogbox', function(Y) {
Y.Global.ItsaDialog.showWarning('Oops, something went wrong.');
});
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2013.12.12-21-06'
}).use('gallery-itsadialogbox', function(Y) {
var callback = function(e) {
alert(e.buttonName+' --> '+e.value);
};
Y.Global.ItsaDialog.getNumber('Only Adults', 'Enter your age:', 25, 18, 100, callback);
});
All code on this site is licensed under the BSD License unless stated otherwise.