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.
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.05.16-20-37'
}).use('popup-calendar', function(Y) {
var input = Y.one('form input[name=date]'),
popupcalendar = new Y.PopupCalendar({
// Popup Calendar config properties
// input: the text input that will trigger
// the calendar to show
input: input,
// focus the calendar on input focus for
// keyboard control (default is false)
autoFocusOnFieldFocus: false,
// depending on the browser you may
// need to have all tabindex's defined on
// inputs, you can use this attribute to do
// it so you don't have to (default is false);
// doesn't specify the tabindex then this is required
autoTabIndexFormElements: false,
// Calendar config properties
width:'400px',
showPrevMonth: true,
showNextMonth: true,
date: new Date(),
// Widget Position Align configuration properties
// This is now optional and defaults to the following
align: {
node: input,
points: [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.TR]
}
});
// The popup calendar makes no assumptions as to
// what you want to do with the selected date
// so it is up to you to do something with the emitted event.
popupcalendar.on('dateSelected', function(e) {
var d = e.newSelection[0];
popupcalendar.get('input').set('value', d.getDate() + "/" + d.getMonth() + "/" + d.getFullYear());
});
});
/home/y/libexec/ant/bin/ant all Buildfile: build.xml [echo] Starting Build For gallery-popup-calendar clean: init: [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp [echo] Starting Build For gallery-popup-calendar -lint-server: [echo] Starting Build For gallery-popup-calendar -node: [echo] For faster builds, install Node.js. -concatdebug: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/ant [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/ant -registerdebug: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp -prependdebug: -appenddebug: builddebug: -createcore: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp -loggerregex: buildcore: -rollupjs: -concatskins: [copy] Copying 2 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/ant [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/ant [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/assets/skins/sam/gallery-popup-calendar.css [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/assets/skins/sam/gallery-popup-calendar.css -buildskins: -rollupcss: buildskins: -buildlangs: -rolluplangs: buildlangs: build: minify: [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/gallery-popup-calendar.js [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/gallery-popup-calendar-min.js lint: [echo] Using Rhino. Install nodejs to improve jslint speed, or skip with -Dlint.skip=true [java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-popup-calendar/build_tmp/gallery-popup-calendar.js [java] [java] [java] 76, 30: Missing semicolon. [java] return normalizedDate [java] [java] 201, 9: 'maxDayRule' is not defined. [java] maxDayRule = (maxDay+1) + '-31'; [java] [java] 204, 34: 'maxDayRule' is not defined. [java] rules[maxYear][maxMonth][maxDayRule] = "disabledDates"; [java] [java] [java] local: deploybuild: [copy] Copying 3 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-popup-calendar deployassets: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-popup-calendar/assets deployskins: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-popup-calendar/assets/skins/sam [copy] Copying 2 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-popup-calendar/assets/skins/sam deploylang: deploydocs: deploy: all: BUILD SUCCESSFUL Total time: 2 seconds
All code on this site is licensed under the BSD License unless stated otherwise.