BootstrapTextBox Class
Declaration
class BootstrapTextBox 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
getCaretPosition Method
Declaration
getCaretPosition(): number
Returns
getText Method
Declaration
getText(): string
Returns
off<K> Method
Declaration
off<K extends keyof BootstrapTextBoxEventMap>(
eventName?: K,
callback?: (this: BootstrapTextBox,
args?: BootstrapTextBoxEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapTextBox, args?: BootstrapTextBoxEventMap[K]) => void |
Type Parameters
Returns
on<K>(eventName, callback) Method
Declaration
on<K extends keyof BootstrapTextBoxEventMap>(
eventName: K,
callback: (this: BootstrapTextBox,
args?: BootstrapTextBoxEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapTextBox, args?: BootstrapTextBoxEventMap[K]) => void |
Type Parameters
Returns
once<K>(eventName, callback) Method
Declaration
once<K extends keyof BootstrapTextBoxEventMap>(
eventName: K,
callback: (this: BootstrapTextBox,
args?: BootstrapTextBoxEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapTextBox, args?: BootstrapTextBoxEventMap[K]) => void |
Type Parameters
Returns
selectAll Method
Declaration
selectAll(): void
setCaretPosition(position) Method
Declaration
setCaretPosition(
position: number
): void
Parameters
Name |
Type |
position |
number |
setSelection(startPos, endPos, scrollToSelection) Method
Declaration
setSelection(
startPos: number,
endPos: number,
scrollToSelection: boolean
): void
Parameters
Name |
Type |
startPos |
number |
endPos |
number |
scrollToSelection |
boolean |
setText(text) Method
Declaration
setText(
text: string
): void
Parameters