BootstrapCalendar Class
Declaration
class BootstrapCalendar extends BootstrapClientEdit
IMPORTANT
Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.
Methods
clearSelection Method
Deselects all the selected dates within the calendar.
Declaration
clearSelection(): void
deselectDate(date) Method
Deselects the specified date within the calendar.
Declaration
deselectDate(
date: Date
): void
Parameters
deselectRange(start, end) Method
Deselects the specified range of dates within the calendar.
Declaration
deselectRange(
start: Date,
end: Date
): void
Parameters
Name |
Type |
start |
Date |
end |
Date |
getEnabled Method
Declaration
getEnabled(): boolean
Returns
getMaxDate Method
Gets the maximum date on the calendar.
Declaration
getMaxDate(): Date
Returns
getMinDate Method
Gets the minimum date on the calendar.
Declaration
getMinDate(): Date
Returns
getSelectedDate Method
Returns the calendar’s selected date.
Declaration
getSelectedDate(): Date
Returns
getSelectedDates Method
Returns a list of dates which are selected within the calendar.
Declaration
getSelectedDates(): Date[]
Returns
getVisibleDate Method
Gets the date that determines the month and year that are currently displayed in the calendar.
Declaration
getVisibleDate(): Date
Returns
isDateSelected(date) Method
Tests whether the specified date is selected.
Declaration
isDateSelected(
date: Date
): boolean
Parameters
Returns
off<K> Method
Declaration
off<K extends keyof BootstrapCalendarEventMap>(
eventName?: K,
callback?: (this: BootstrapCalendar,
args?: BootstrapCalendarEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapCalendar, args?: BootstrapCalendarEventMap[K]) => void |
Type Parameters
Returns
on<K>(eventName, callback) Method
Declaration
on<K extends keyof BootstrapCalendarEventMap>(
eventName: K,
callback: (this: BootstrapCalendar,
args?: BootstrapCalendarEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapCalendar, args?: BootstrapCalendarEventMap[K]) => void |
Type Parameters
Returns
once<K>(eventName, callback) Method
Declaration
once<K extends keyof BootstrapCalendarEventMap>(
eventName: K,
callback: (this: BootstrapCalendar,
args?: BootstrapCalendarEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapCalendar, args?: BootstrapCalendarEventMap[K]) => void |
Type Parameters
Returns
selectDate(date) Method
Selects the specified date within the calendar.
Declaration
selectDate(
date: Date
): void
Parameters
selectRange(start, end) Method
Selects the specified range of dates within the calendar.
Declaration
selectRange(
start: Date,
end: Date
): void
Parameters
Name |
Type |
start |
Date |
end |
Date |
setEnabled(enabled) Method
Declaration
setEnabled(
enabled: boolean
): void
Parameters
Name |
Type |
enabled |
boolean |
setMaxDate(date) Method
Sets the maximum date of the calendar.
Declaration
setMaxDate(
date: Date
): void
Parameters
setMinDate(date) Method
Sets the minimum date of the calendar.
Declaration
setMinDate(
date: Date
): void
Parameters
setSelectedDate(date) Method
Sets the calendar’s selected date.
Declaration
setSelectedDate(
date: Date
): void
Parameters
setVisibleDate(date) Method
Sets the date that specifies the month and year to be displayed in the calendar.
Declaration
setVisibleDate(
date: Date
): void
Parameters