charton API / @chart-on/ui / index / SourceInputDef
Interface: SourceInputDef
Defined in: ui/src/form-model.ts:109
Which bar value (or other series) a calculation reads.
Extends
FormInputBase<string>
Properties
default?
optionaldefault?:string
Defined in: ui/src/form-model.ts:28
Value when the form opens without one, and after a reset.
Inherited from
disabled?
optionaldisabled?:FormCondition
Defined in: ui/src/form-model.ts:32
Default false. Disabled inputs keep their value and are not validated.
Inherited from
hint?
optionalhint?:string
Defined in: ui/src/form-model.ts:26
Help text under the control.
Inherited from
id
id:
string
Defined in: ui/src/form-model.ts:23
Key of this input's value in FormValues; unique within the schema.
Inherited from
kind
kind:
"source"
Defined in: ui/src/form-model.ts:110
label
label:
string
Defined in: ui/src/form-model.ts:24
Inherited from
options?
optionaloptions?:FormOption<string>[]
Defined in: ui/src/form-model.ts:112
Default defaultSources: open, high, low, close and the usual averages.
visible?
optionalvisible?:FormCondition
Defined in: ui/src/form-model.ts:30
Default true. Hidden inputs keep their value and are not validated.
Inherited from
Methods
validate()?
optionalvalidate(value,values):string|null|undefined
Defined in: ui/src/form-model.ts:34
A message when value is not acceptable, else nothing. Runs after the built-in checks pass.
Parameters
value
string
values
Readonly<FormValues>
Returns
string | null | undefined