C# Class Fluqi.Widget.jDatePicker.Events

A set of events to apply to a set of jQuery UI DatePicker.
Inheritance: Core.Options
Datei anzeigen Open project: toepoke/Fluqi

Public Methods

Method Description
SetBeforeShowDayEvent ( string beforeShowDayEvent ) : Events

The function takes a date as a parameter and must return an array with [0] equal to true/false indicating whether or not this date is selectable, [1] equal to a CSS class name(s) or '' for the default presentation, and [2] an optional popup tooltip for this date. It is called for each day in the datepicker before it is displayed.

SetBeforeShowEvent ( string beforeShowEvent ) : Events

Can be a function that takes an input field and current datepicker instance and returns an events object to update the datepicker with. It is called just before the datepicker is displayed.

SetCreateEvent ( string createEvent ) : Events

This event is triggered when datepicker is created.

SetOnChangeMonthYearEvent ( string onChangeMonthYearEvent ) : Events

Allows you to define your own event when the datepicker moves to a new month and/or year. The function receives the selected year, month (1-12), and the datepicker instance as parameters. this refers to the associated input field.

SetOnCloseEvent ( string onCloseEvent ) : Events

Allows you to define your own event when the datepicker is closed, whether or not a date is selected. The function receives the selected date as text ('' if none) and the datepicker instance as parameters. this refers to the associated input field.

SetOnSelectEvent ( string onSelectEvent ) : Events

Allows you to define your own event when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters. this refers to the associated input field.

Method Details

SetBeforeShowDayEvent() public method

The function takes a date as a parameter and must return an array with [0] equal to true/false indicating whether or not this date is selectable, [1] equal to a CSS class name(s) or '' for the default presentation, and [2] an optional popup tooltip for this date. It is called for each day in the datepicker before it is displayed.
public SetBeforeShowDayEvent ( string beforeShowDayEvent ) : Events
beforeShowDayEvent string
return Events

SetBeforeShowEvent() public method

Can be a function that takes an input field and current datepicker instance and returns an events object to update the datepicker with. It is called just before the datepicker is displayed.
public SetBeforeShowEvent ( string beforeShowEvent ) : Events
beforeShowEvent string
return Events

SetCreateEvent() public method

This event is triggered when datepicker is created.
public SetCreateEvent ( string createEvent ) : Events
createEvent string
return Events

SetOnChangeMonthYearEvent() public method

Allows you to define your own event when the datepicker moves to a new month and/or year. The function receives the selected year, month (1-12), and the datepicker instance as parameters. this refers to the associated input field.
public SetOnChangeMonthYearEvent ( string onChangeMonthYearEvent ) : Events
onChangeMonthYearEvent string
return Events

SetOnCloseEvent() public method

Allows you to define your own event when the datepicker is closed, whether or not a date is selected. The function receives the selected date as text ('' if none) and the datepicker instance as parameters. this refers to the associated input field.
public SetOnCloseEvent ( string onCloseEvent ) : Events
onCloseEvent string
return Events

SetOnSelectEvent() public method

Allows you to define your own event when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters. this refers to the associated input field.
public SetOnSelectEvent ( string onSelectEvent ) : Events
onSelectEvent string
return Events