Marco Asbreuk![]()
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-2012.11.07-21-32'
}).use('gallery-itsadialogbox', function(Y) {
Y.Global.ItsaDialog.showWarning('Oops, something went wrong.');
});
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.11.07-21-32'
}).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);
});
© 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