BootstrapTextBox Class
In This Article
#Declaration
TypeScript
class BootstrapTextBox extends BootstrapClientEdit
#Remarks
IMPORTANT
Bootstrap Controls for ASP.
#Inherited Members
#Inheritance
Control
BootstrapClientEdit
BootstrapTextBox
#Methods
#getCaretPosition Method
#Declaration
TypeScript
getCaretPosition(): number
#Returns
Type |
---|
number |
#getText Method
#Declaration
TypeScript
getText(): string
#Returns
Type |
---|
string |
#off<K> Method
#Declaration
TypeScript
off<K extends keyof BootstrapTextBoxEventMap>(
eventName?: K,
callback?: (this: BootstrapTextBox,
args?: BootstrapTextBoxEventMap[K]) => void
): this
#Parameters
Name | Type |
---|---|
event |
K |
callback | (this: Bootstrap |
#Type Parameters
Name | Type |
---|---|
K | keyof |
#Returns
Type |
---|
this |
#on<K>(eventName, callback) Method
#Declaration
TypeScript
on<K extends keyof BootstrapTextBoxEventMap>(
eventName: K,
callback: (this: BootstrapTextBox,
args?: BootstrapTextBoxEventMap[K]) => void
): this
#Parameters
Name | Type |
---|---|
event |
K |
callback | (this: Bootstrap |
#Type Parameters
Name | Type |
---|---|
K | keyof |
#Returns
Type |
---|
this |
#once<K>(eventName, callback) Method
#Declaration
TypeScript
once<K extends keyof BootstrapTextBoxEventMap>(
eventName: K,
callback: (this: BootstrapTextBox,
args?: BootstrapTextBoxEventMap[K]) => void
): this
#Parameters
Name | Type |
---|---|
event |
K |
callback | (this: Bootstrap |
#Type Parameters
Name | Type |
---|---|
K | keyof |
#Returns
Type |
---|
this |
#selectAll Method
#Declaration
TypeScript
selectAll(): void
#setCaretPosition(position) Method
#Declaration
TypeScript
setCaretPosition(
position: number
): void
#Parameters
Name | Type |
---|---|
position | number |
#setSelection(startPos, endPos, scrollToSelection) Method
#Declaration
TypeScript
setSelection(
startPos: number,
endPos: number,
scrollToSelection: boolean
): void
#Parameters
Name | Type |
---|---|
start |
number |
end |
number |
scroll |
boolean |
#setText(text) Method
#Declaration
TypeScript
setText(
text: string
): void
#Parameters
Name | Type |
---|---|
text | string |