The requested page is not available for the requested platform. You are viewing the content for Default platform.

BootstrapTextBox Class

Declaration

export class BootstrapTextBox 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

BootstrapClientEdit
BootstrapTextBox

Methods

getCaretPosition Method

Declaration

getCaretPosition(): number

Returns

Type Description

getText Method

Declaration

getText(): string

Returns

Type Description

off Method

Declaration

off(eventName?: K, callback?: (this: BootstrapTextBox, args?: BootstrapTextBoxEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description

on Method

Declaration

on(eventName: K, callback: (this: BootstrapTextBox, args?: BootstrapTextBoxEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description

once Method

Declaration

once(eventName: K, callback: (this: BootstrapTextBox, args?: BootstrapTextBoxEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description

selectAll Method

Declaration

selectAll(): void

setCaretPosition Method

Declaration

setCaretPosition(position: number): void

Parameters

Name Type Description
position

setSelection Method

Declaration

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

Parameters

Name Type Description
startPos
endPos
scrollToSelection

setText Method

Declaration

setText(text: string): void

Parameters

Name Type Description
text