BootstrapSpinEdit Class

Declaration

export class BootstrapSpinEdit extends BootstrapClientEdit

Inheritance

BootstrapClientEdit
BootstrapSpinEdit

Properties

name Property

Declaration

readonly name: string

Property Value

Type Description
string

Methods

adjustControl Method

Declaration

adjustControl(): void

focus Method

Declaration

focus(): void

getButtonVisible Method

Declaration

getButtonVisible(number: number): boolean

Parameters

Type Name Description
number number

Returns

Type Description
boolean

getCaption Method

Declaration

getCaption(): string

Returns

Type Description
string

getCaretPosition Method

Declaration

getCaretPosition(): number

Returns

Type Description
number

getEnabled Method

Declaration

getEnabled(): boolean

Returns

Type Description
boolean

getErrorText Method

Declaration

getErrorText(): string

Returns

Type Description
string

getHeight Method

Declaration

getHeight(): number

Returns

Type Description
number

getInputElement Method

Declaration

getInputElement(): any

Returns

Type Description
any

getIsValid Method

Declaration

getIsValid(): boolean

Returns

Type Description
boolean

getMainElement Method

Declaration

getMainElement(): any

Returns

Type Description
any

getMaxValue Method

Gets the maximum value of the editor.

Declaration

getMaxValue(): number

Returns

Type Description
number

A number representing the maximum value of the editor.

getMinValue Method

Gets the minimum value of the editor.

Declaration

getMinValue(): number

Returns

Type Description
number

A number representing the minimum value of the editor.

getNumber Method

Gets a number which represents the spin editor's value

Declaration

getNumber(): number

Returns

Type Description
number

A number representing the value of the spin editor.

Use the getNumber method to obtain the spin editor's value in a decimal representation. The value edited by the spin editor can be accessed or changed via the GetValue or SetValue methods, respectively.

getParentControl Method

Declaration

getParentControl(): any

Returns

Type Description
any

getReadOnly Method

Declaration

getReadOnly(): boolean

Returns

Type Description
boolean

getText Method

Returns the text displayed within the editor.

Declaration

getText(): string

Returns

Type Description
string

A string value representing the text within the editor.

This method returns the editor's displayed text representing the editor's value formatted according to a display format pattern applied (if any) and information about a specific culture used.

getValue Method

Declaration

getValue(): any

Returns

Type Description
any

getVisible Method

Declaration

getVisible(): boolean

Returns

Type Description
boolean

getWidth Method

Declaration

getWidth(): number

Returns

Type Description
number

inCallback Method

Declaration

inCallback(): boolean

Returns

Type Description
boolean

off Method

Declaration

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

Parameters

Type Name Description
K eventName
(this: BootstrapSpinEdit, args?: BootstrapSpinEditEventMap[K]) => void callback

Returns

Type Description
this

on Method

Declaration

on<K extends keyof BootstrapSpinEditEventMap>(eventName: K, callback: (this: BootstrapSpinEdit, args?: BootstrapSpinEditEventMap[K]) => void): this

Parameters

Type Name Description
K eventName
(this: BootstrapSpinEdit, args?: BootstrapSpinEditEventMap[K]) => void callback

Returns

Type Description
this

once Method

Declaration

once<K extends keyof BootstrapSpinEditEventMap>(eventName: K, callback: (this: BootstrapSpinEdit, args?: BootstrapSpinEditEventMap[K]) => void): this

Parameters

Type Name Description
K eventName
(this: BootstrapSpinEdit, args?: BootstrapSpinEditEventMap[K]) => void callback

Returns

Type Description
this

selectAll Method

Declaration

selectAll(): void

sendMessageToAssistiveTechnology Method

Declaration

sendMessageToAssistiveTechnology(message: string): void

Parameters

Type Name Description
string message

setButtonVisible Method

Declaration

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

Parameters

Type Name Description
number number
boolean value

setCaption Method

Declaration

setCaption(caption: string): void

Parameters

Type Name Description
string caption

setCaretPosition Method

Declaration

setCaretPosition(position: number): void

Parameters

Type Name Description
number position

setEnabled Method

Declaration

setEnabled(value: boolean): void

Parameters

Type Name Description
boolean value

setErrorText Method

Declaration

setErrorText(errorText: string): void

Parameters

Type Name Description
string errorText

setHeight Method

Declaration

setHeight(height: number): void

Parameters

Type Name Description
number height

setIsValid Method

Declaration

setIsValid(isValid: boolean): void

Parameters

Type Name Description
boolean isValid

setMaxValue Method

Declaration

setMaxValue(value: number): void

Parameters

Type Name Description
number value

setMinValue Method

Declaration

setMinValue(value: number): void

Parameters

Type Name Description
number value

setNumber Method

Declaration

setNumber(number: number): void

Parameters

Type Name Description
number number

setReadOnly Method

Declaration

setReadOnly(readOnly: boolean): void

Parameters

Type Name Description
boolean readOnly

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

setValue Method

Declaration

setValue(number: number): void

Parameters

Type Name Description
number number

setVisible Method

Declaration

setVisible(visible: boolean): void

Parameters

Type Name Description
boolean visible

setWidth Method

Declaration

setWidth(width: number): void

Parameters

Type Name Description
number width

validate Method

Declaration

validate(): void