Skip to main content

BootstrapDateEdit Class

#Declaration

TypeScript
class BootstrapDateEdit extends BootstrapClientEdit

#Remarks

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.

#Inheritance

#Methods

#adjustDropDownWindow Method

#Declaration

TypeScript
adjustDropDownWindow(): void

#getButtonVisible(number) Method

#Declaration

TypeScript
getButtonVisible(
    number: number
): boolean

#Parameters

Name Type
number number

#Returns

Type
boolean

#getCalendar Method

#Declaration

TypeScript
getCalendar(): BootstrapCalendar | null

#Returns

Type
BootstrapCalendar
null

#getCaretPosition Method

#Declaration

TypeScript
getCaretPosition(): number

#Returns

Type
number

#getDate Method

#Declaration

TypeScript
getDate(): Date

#Returns

Type
Date

#getMaxDate Method

#Declaration

TypeScript
getMaxDate(): Date

#Returns

Type
Date

#getMinDate Method

#Declaration

TypeScript
getMinDate(): Date

#Returns

Type
Date

#getRangeDayCount Method

#Declaration

TypeScript
getRangeDayCount(): number

#Returns

Type
number

#getText Method

#Declaration

TypeScript
getText(): string

#Returns

Type
string

#getTimeEdit Method

#Declaration

TypeScript
getTimeEdit(): BootstrapTimeEdit | null

#Returns

Type
BootstrapTimeEdit
null

#hideDropDown Method

#Declaration

TypeScript
hideDropDown(): void

#off<K> Method

#Declaration

TypeScript
off<K extends keyof BootstrapDateEditEventMap>(
    eventName?: K,
    callback?: (this: BootstrapDateEdit,
    args?: BootstrapDateEditEventMap[K]) => void
): this

#Parameters

Name Type
eventName K
callback (this: BootstrapDateEdit, args?: BootstrapDateEditEventMap[K]) => void

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#on<K>(eventName, callback) Method

#Declaration

TypeScript
on<K extends keyof BootstrapDateEditEventMap>(
    eventName: K,
    callback: (this: BootstrapDateEdit,
    args?: BootstrapDateEditEventMap[K]) => void
): this

#Parameters

Name Type
eventName K
callback (this: BootstrapDateEdit, args?: BootstrapDateEditEventMap[K]) => void

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#once<K>(eventName, callback) Method

#Declaration

TypeScript
once<K extends keyof BootstrapDateEditEventMap>(
    eventName: K,
    callback: (this: BootstrapDateEdit,
    args?: BootstrapDateEditEventMap[K]) => void
): this

#Parameters

Name Type
eventName K
callback (this: BootstrapDateEdit, args?: BootstrapDateEditEventMap[K]) => void

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#selectAll Method

#Declaration

TypeScript
selectAll(): void

#setButtonVisible(number, value) Method

#Declaration

TypeScript
setButtonVisible(
    number: number,
    value: boolean
): void

#Parameters

Name Type
number number
value boolean

#setCaretPosition(position) Method

#Declaration

TypeScript
setCaretPosition(
    position: number
): void

#Parameters

Name Type
position number

#setDate(date) Method

#Declaration

TypeScript
setDate(
    date: Date
): void

#Parameters

Name Type
date Date

#setMaxDate(date) Method

#Declaration

TypeScript
setMaxDate(
    date: Date
): void

#Parameters

Name Type
date Date

#setMinDate(date) Method

#Declaration

TypeScript
setMinDate(
    date: Date
): void

#Parameters

Name Type
date Date

#setSelection(startPos, endPos, scrollToSelection) Method

#Declaration

TypeScript
setSelection(
    startPos: number,
    endPos: number,
    scrollToSelection: boolean
): void

#Parameters

Name Type
startPos number
endPos number
scrollToSelection boolean

#setText(text) Method

#Declaration

TypeScript
setText(
    text: string
): void

#Parameters

Name Type
text string

#showDropDown Method

#Declaration

TypeScript
showDropDown(): void