Skip to main content

FormElementInterface

Implemented by

Index

Properties

db_type

db_type: string

domElements

domElements: { edit?: HTMLElement; main?: HTMLElement }

Type declaration

  • [key string]: HTMLElement
  • optionaledit?: HTMLElement
  • optionalmain?: HTMLElement

editMode

editMode: boolean

events

events: Events

external

external: {}

Type declaration

  • [key string]: any

filtersMode

filtersMode: boolean

formBuilder

formBuilder: FormBuilder

optionalhelp

help?: string

inputs

inputs: {}

Type declaration

  • [key string]: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | HTMLButtonElement | RadioNodeList

label

label: string

mapIsGeo

mapIsGeo: boolean

name

name: string

nameChanged

nameChanged: boolean

namespace

namespace: string

optionaloptions

options?: {}[]

optionaloptionsDict

optionsDict?: {}

Type declaration

  • [key string]: any

optionalparameterName

parameterName?: string

optionalparameterNameShort

parameterNameShort?: string

optionalplaceholder

placeholder?: string

optionalprotected

protected?: boolean

optionalreadonly

readonly?: boolean

optionalsearchable

searchable?: boolean

templates

templates: { edit?: (data: Record<string, any>) => string; main?: (data: Record<string, any>) => string }

Type declaration

  • [key string]: (data: Record<string, any>) => string
  • optionaledit?: (data: Record<string, any>) => string
      • (data: Record<string, any>): string
      • Parameters

        • data: Record<string, any>

        Returns string

  • optionalmain?: (data: Record<string, any>) => string
      • (data: Record<string, any>): string
      • Parameters

        • data: Record<string, any>

        Returns string

type

type: string

value

value: any

optionalvisible

visible?: boolean

Methods

destroy

  • destroy(): void
  • Returns void

destroyEditor

  • destroyEditor(): void
  • Returns void

getData

  • getData(): { name: string; value: any }
  • Returns { name: string; value: any }

    • name: string
    • value: any

getDataForTemplate

  • getDataForTemplate(): any
  • Returns any

getEditor

  • getEditor(): HTMLElement
  • Returns HTMLElement

getSchema

  • getSchema(): any
  • Returns any

getValue

  • getValue(): any
  • Returns any

hide

  • hide(): void
  • Returns void

init

  • init(): void
  • Returns void

initEditor

  • initEditor(): void
  • Returns void

redraw

  • redraw(): void
  • Returns void

setDomElements

  • setDomElements(): void
  • Returns void

setEditorEventHandlers

  • setEditorEventHandlers(): void
  • Returns void

setEventHandlers

  • setEventHandlers(): void
  • Returns void

setExternal

  • setExternal(params: any): void
  • Parameters

    • params: any

    Returns void

setInputValue

  • setInputValue(value: any): void
  • Parameters

    • value: any

    Returns void

setValue

  • setValue(value: any, updateInput?: boolean): void
  • Parameters

    • value: any
    • optionalupdateInput: boolean

    Returns void

show

  • show(): void
  • Returns void