Skip to content

@idealworld/formula-editor v0.6.2 / iwInterface / VarInfo

Interface: VarInfo ​

Variable information

Example ​

{
  name: 'age',
  label: '年龄',
  kind: VarKind.NUMBER,
  note: '年龄',
  minLen: 18,
  maxLen: 60,
  defaultValue:36,
  cates: ['基础','隐私']
}

Extends ​

Properties ​

cates? ​

optional cates: string[]

Variable category

One variable can correspond to multiple categories

Source ​

processes/interface.ts:232


checkReg? ​

optional checkReg: string

Check regularity

Inherited from ​

VarGuard.checkReg

Source ​

processes/interface.ts:189


defaultValue? ​

optional defaultValue: any

Default value

Source ​

processes/interface.ts:236


kind ​

kind: VarKind

Variable type

Inherited from ​

VarGuard.kind

Source ​

processes/interface.ts:177


label? ​

optional label: string

Variable display name

Source ​

processes/interface.ts:222


maxLen? ​

optional maxLen: number

Maximum length (maximum value)

Inherited from ​

VarGuard.maxLen

Source ​

processes/interface.ts:185


minLen? ​

optional minLen: number

Minimum length (minimum value)

Inherited from ​

VarGuard.minLen

Source ​

processes/interface.ts:181


name? ​

optional name: string

Variable name

Source ​

processes/interface.ts:218


note? ​

optional note: string

Variable description

Source ​

processes/interface.ts:226


options? ​

optional options: [Object]

Optional

Inherited from ​

VarGuard.options

Source ​

processes/interface.ts:193