jQuery: The Write Less, Do More JavaScript Library

Plugins/Calendar/dialogCalendar

From jQuery JavaScript Library

Jump to: navigation, search


« Back to Plugins/Calendar

dialogCalendar( dateText, onSelect, settings, pos )

Open a calendar in a "dialog" box.
Arguments:


dateTextString
The initial date for the calendar.
onSelectFunction
A callback function when a date is selected. The function receives the date text and calendar instance as parameters.
settingsOptions
The new settings for the calendar.
posNumber[2]
The position of the top/left of the dialog as [x, y]. If not specified the dialog is centered on the screen.


Examples:
Open a calendar in a "dialog" box.

popUpCal.dialogCalendar($('#invokeDialog').val(), setDateFromDialog, {prompt: 'Choose a date', speed: });

NameType