BootstrapMemo Class

Declaration
export class BootstrapMemo extends BootstrapClientEdit
Inheritance

Methods

getCaretPosition method

Declaration
getCaretPosition(): number
Returns
Type Description
number

getText method

Declaration
getText(): string
Returns
Type Description
string

off method

Declaration
off(eventName?: K, callback?: (this: BootstrapMemo, args?: BootstrapMemoEventMap[K]) => void): this
Parameters
Type Name Description
K eventName
(this: BootstrapMemo, args?: BootstrapMemoEventMap[K]) => void callback
Returns
Type Description
this

on method

Declaration
on(eventName: K, callback: (this: BootstrapMemo, args?: BootstrapMemoEventMap[K]) => void): this
Parameters
Type Name Description
K eventName
(this: BootstrapMemo, args?: BootstrapMemoEventMap[K]) => void callback
Returns
Type Description
this

once method

Declaration
once(eventName: K, callback: (this: BootstrapMemo, args?: BootstrapMemoEventMap[K]) => void): this
Parameters
Type Name Description
K eventName
(this: BootstrapMemo, args?: BootstrapMemoEventMap[K]) => void callback
Returns
Type Description
this

selectAll method

Declaration
selectAll(): void

setCaretPosition method

Declaration
setCaretPosition(position: number): void
Parameters
Type Name Description
number position

setSelection method

Declaration
setSelection(startPos: number, endPos: number, scrollToSelection: boolean): void
Parameters
Type Name Description
number startPos
number endPos
boolean scrollToSelection

setText method

Declaration
setText(text: string): void
Parameters
Type Name Description
string text