Field Class

Hierarchy

  • Field

Implements

  • AbstractField

Indexable

[key: string]: any

Constructors

Properties

attributes: GenObj
calculated: boolean
class: string
default?: string
description?: string
disabled: boolean
expression?: string
fieldview?: string
help?: {
    context?: any;
    topic: string;
}

Type declaration

  • Optional context?: any
  • topic: string
hidden: boolean
id?: number
in_auto_save?: boolean
input_type: InputType
is_fkey: boolean
is_unique: boolean
label: string
name: string
options?: any
parent_field?: string
postText?: string
primary_key: boolean
refname: string = ""
reftable?: AbstractTable
reftable_name?: string
reftype?: string | Type
required: boolean
showIf?: any
sourceURL?: string
stored: boolean
sublabel?: string
tab?: string
table?: null | AbstractTable
table_id?: number
type?: string | Type
typename?: string
validator: ((value, whole_rec?) => undefined | string | boolean)

Type declaration

    • (value, whole_rec?): undefined | string | boolean
    • Parameters

      • value: any
      • Optional whole_rec: any

      Returns undefined | string | boolean

Accessors

  • get presets(): null | {
        LoggedIn: ((__namedParameters) => boolean);
    }
  • Returns null | {
        LoggedIn: ((__namedParameters) => boolean);
    }

Methods

  • Distinct Values

    Parameters

    • Optional req: any
    • Optional where: Where
    • Optional only_present: boolean

    Returns Promise<{
        jsvalue?: boolean;
        label: string;
        value: string;
    }[]>

  • Fills 'this.options' with values available via foreign key Could be used for in a Protected

Theme

On This Page

Generated using TypeDoc