@serenity-is/corelib / AutoNumeric
Class: AutoNumeric
Defined in: src/ui/editors/autonumeric.ts:887
Constructors
Constructor
new AutoNumeric():
AutoNumeric
Returns
AutoNumeric
Properties
allowedSettingKeys
readonlystaticallowedSettingKeys:Set<string>
Defined in: src/ui/editors/autonumeric.ts:1281
Methods
destroy()
staticdestroy(input):void
Defined in: src/ui/editors/autonumeric.ts:1174
method to remove settings and stop autoNumeric()
Parameters
input
HTMLInputElement
Returns
void
getSettings()
staticgetSettings(input):AutoNumericOptions
Defined in: src/ui/editors/autonumeric.ts:1273
returns the settings object for those who need to look under the hood
Parameters
input
HTMLInputElement
Returns
getValue()
staticgetValue(input):string
Defined in: src/ui/editors/autonumeric.ts:1237
method to get the unformatted value from a specific input field, returns a numeric value
Parameters
input
HTMLInputElement
Returns
string
hasInstance()
statichasInstance(input):boolean
Defined in: src/ui/editors/autonumeric.ts:1277
Parameters
input
HTMLInputElement
Returns
boolean
init()
staticinit(input,options):void
Defined in: src/ui/editors/autonumeric.ts:889
Parameters
input
HTMLInputElement
options
Returns
void
setValue()
staticsetValue(input,valueIn):string
Defined in: src/ui/editors/autonumeric.ts:1199
returns a formatted strings for "input:text" fields Uses jQuery's .val() method
Parameters
input
HTMLInputElement
valueIn
string | number
Returns
string
updateOptions()
staticupdateOptions(input,options):void
Defined in: src/ui/editors/autonumeric.ts:1180
method to update settings - can call as many times
Parameters
input
HTMLInputElement
options
Returns
void