Home Reference Source
import NumberComponent from 'formiojs/src/components/number/Number.js'
public class | source

NumberComponent

Extends:

src/components/_classes/input/Input.js~Input → NumberComponent

Direct Subclass:

CurrencyComponent

Static Member Summary

Static Public Members
public static get

builderInfo: {"title": string, "icon": string, "group": string, "documentation": string, "weight": number, "schema": *}

Static Method Summary

Static Public Methods
public static

schema(extend: ...*): *

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public get
public get
public
public get
public get
public
public

Method Summary

Public Methods
public

addFocusBlurEvents(element: *)

public

Creates the number mask for normal numbers.

public

focus()

public

formatValue(value: *): *

public

getMaskedValue(value: *): *

public

getValueAsString(value: *, options: *): *

public

getValueAt(index: *): *

public
public

parseNumber(value: *): *

public

parseValue(input: *): *

public

setInputMask(input: *)

public

setValueAt(index: *, value: *, flags: {}): *

Static Public Members

public static get builderInfo: {"title": string, "icon": string, "group": string, "documentation": string, "weight": number, "schema": *} source

Static Public Methods

public static schema(extend: ...*): * source

Params:

NameTypeAttributeDescription
extend ...*

Return:

*

Public Constructors

public constructor() source

Public Members

public decimalLimit: * source

public decimalSeparator: * source

public get defaultSchema: * source

public get defaultValue: * source

public delimiter: * source

public get emptyValue: string source

public get inputInfo: * source

public numberMask: * source

public validators: * source

Public Methods

public addFocusBlurEvents(element: *) source

Params:

NameTypeAttributeDescription
element *

public createNumberMask(): * source

Creates the number mask for normal numbers.

Return:

*

public focus() source

public formatValue(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public getMaskedValue(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public getValueAsString(value: *, options: *): * source

Params:

NameTypeAttributeDescription
value *
options *

Return:

*

public getValueAt(index: *): * source

Params:

NameTypeAttributeDescription
index *

Return:

*

public isDecimalAllowed(): * source

Return:

*

public parseNumber(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public parseValue(input: *): * source

Params:

NameTypeAttributeDescription
input *

Return:

*

public setInputMask(input: *) source

Params:

NameTypeAttributeDescription
input *

public setValueAt(index: *, value: *, flags: {}): * source

Params:

NameTypeAttributeDescription
index *
value *
flags {}
  • optional
  • default: {}

Return:

*