Skip to content

Commit

Permalink
Added more DatepickerOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
omidkrad committed Jun 26, 2014
1 parent 87fba9f commit dbbde7e
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions bootstrap.datepicker/bootstrap.datepicker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,35 @@

/// <reference path="../jquery/jquery.d.ts"/>

/**
* See online docs: http://bootstrap-datepicker.readthedocs.org/
*/
interface DatepickerOptions {
format?: string;
weekStart?: number;
startDate?: any;
endDate?: any;
startDate?: Date;
endDate?: Date;
autoclose?: boolean;
startView?: number;
todayBtn?: any;
todayHighlight?: boolean;
keyboardNavigation?: boolean;
language?: string;
beforeShowDay?: (Date) => any;
calendarWeeks?: boolean;
clearBtn?: boolean;
daysOfWeekDisabled?: number[];
forceParse?: boolean;
inputs?: any[];
minViewMode?: any;
multidate?: any;
multidateSeparator?: string;
orientation?: string;
}

interface DatepickerEventObject extends JQueryEventObject {
date: Date;
format(format?: string): string;
date: Date;
format(format?: string): string;
}

interface JQuery {
Expand All @@ -29,10 +42,10 @@ interface JQuery {
datepicker(methodName: string, params: any): JQuery;
datepicker(options: DatepickerOptions): JQuery;

off(events: "changeDate", selector?: string, handler?: (eventObject: DatepickerEventObject) => any): JQuery;
off(events: "changeDate", handler: (eventObject: DatepickerEventObject) => any): JQuery;
off(events: "changeDate", selector?: string, handler?: (eventObject: DatepickerEventObject) => any): JQuery;
off(events: "changeDate", handler: (eventObject: DatepickerEventObject) => any): JQuery;

on(events: "changeDate", selector: string, data: any, handler?: (eventObject: DatepickerEventObject) => any): JQuery;
on(events: "changeDate", selector: string, handler: (eventObject: DatepickerEventObject) => any): JQuery;
on(events: 'changeDate', handler: (eventObject: DatepickerEventObject) => any): JQuery;
on(events: "changeDate", selector: string, data: any, handler?: (eventObject: DatepickerEventObject) => any): JQuery;
on(events: "changeDate", selector: string, handler: (eventObject: DatepickerEventObject) => any): JQuery;
on(events: 'changeDate', handler: (eventObject: DatepickerEventObject) => any): JQuery;
}

0 comments on commit dbbde7e

Please sign in to comment.