Jump to content

help with YUI CALENDAR


dflow

Recommended Posts

i created the interval calendar

i have some issues:

// Hide Calendar if we click anywhere in the document other than the calendar
    Event.on(document, "click", function(e) {

        var el = Event.getTarget(e);
        var dialogEl = dialog.element;

        if (el != dialogEl && !Dom.isAncestor(dialogEl, el) && el != showBtn && !Dom.isAncestor(showBtn, el)) {
            dialog.hide();
        }
    });

is not hiding the calendar

 

and

i didnt figure how to set the date format to

YAHOO.example.calendar.cal1 = new YAHOO.widget.Calendar("cal1","callContainer",
																{ LOCALE_WEEKDAYS:"short",
																  START_WEEKDAY: 1,
																  MULTI_SELECT: true
																} );

	// Correct formats for Germany: dd.mm.yyyy, dd.mm, mm.yyyy

	YAHOO.example.calendar.cal1.cfg.setProperty("DATE_FIELD_DELIMITER", ".");

	YAHOO.example.calendar.cal1.cfg.setProperty("MDY_DAY_POSITION", 1);
	YAHOO.example.calendar.cal1.cfg.setProperty("MDY_MONTH_POSITION", 2);
	YAHOO.example.calendar.cal1.cfg.setProperty("MDY_YEAR_POSITION", 3);

	YAHOO.example.calendar.cal1.cfg.setProperty("MD_DAY_POSITION", 1);
	YAHOO.example.calendar.cal1.cfg.setProperty("MD_MONTH_POSITION", 2);

	// Date labels for German locale

	YAHOO.example.calendar.cal1.cfg.setProperty("MONTHS_SHORT",   ["Jan", "Feb", "M\u00E4r", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]);
	YAHOO.example.calendar.cal1.cfg.setProperty("MONTHS_LONG",    ["Januar", "Februar", "M\u00E4rz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]);
	YAHOO.example.calendar.cal1.cfg.setProperty("WEEKDAYS_1CHAR", ["S", "M", "D", "M", "D", "F", "S"]);
	YAHOO.example.calendar.cal1.cfg.setProperty("WEEKDAYS_SHORT", ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]);
	YAHOO.example.calendar.cal1.cfg.setProperty("WEEKDAYS_MEDIUM",["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"]);
	YAHOO.example.calendar.cal1.cfg.setProperty("WEEKDAYS_LONG",  ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]);

Link to comment
https://forums.phpfreaks.com/topic/183440-help-with-yui-calendar/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.