Skip to main content

Class: FormElement

Extended by​

Implements​

Constructors​

Constructor​

new FormElement(
options,
formBuilder,
external): FormElement;

Parameters​

ParameterType
optionsSchemaField
formBuilderFormBuilder
external{ [key: string]: any; }

Returns​

FormElement

Methods​

addSelect2()​

addSelect2(): void;

Returns​

void


destroy()​

destroy(): void;

Returns​

void

Implementation of​

FormElementInterface.destroy


destroyEditor()​

destroyEditor(): void;

Returns​

void

Implementation of​

FormElementInterface.destroyEditor


getData()​

getData(): object;

Returns​

object

name​
name: string;
value​
value: any;

Implementation of​

FormElementInterface.getData


getDataForTemplate()​

getDataForTemplate(): object;

Returns​

object

Implementation of​

FormElementInterface.getDataForTemplate


getEditor()​

getEditor(): HTMLElement;

Returns​

HTMLElement

Implementation of​

FormElementInterface.getEditor


getOptions()​

getOptions(): Promise<FormElementOptions[]>;

Returns​

Promise<FormElementOptions[]>


getSchema()​

getSchema(): object;

Returns​

object

Implementation of​

FormElementInterface.getSchema


getSchemaFieldOptionsList()​

getSchemaFieldOptionsList(): any[];

Returns​

any[]


getValue()​

getValue(): any;

Returns​

any

Implementation of​

FormElementInterface.getValue


hide()​

hide(): void;

Returns​

void

Implementation of​

FormElementInterface.hide


init()​

init(): void;

Returns​

void

Implementation of​

FormElementInterface.init


initEditor()​

initEditor(): void;

Returns​

void

Implementation of​

FormElementInterface.initEditor


redraw()​

redraw(): void;

Returns​

void

Implementation of​

FormElementInterface.redraw


redrawEditor()​

redrawEditor(): void;

Returns​

void


setDomElements()​

setDomElements(): void;

Returns​

void

Implementation of​

FormElementInterface.setDomElements


setEditorEventHandlers()​

setEditorEventHandlers(): void;

Returns​

void

Implementation of​

FormElementInterface.setEditorEventHandlers


setEventHandlers()​

setEventHandlers(): void;

Returns​

void

Implementation of​

FormElementInterface.setEventHandlers


setExternal()​

setExternal(params): void;

Parameters​

ParameterType
paramsany

Returns​

void

Implementation of​

FormElementInterface.setExternal


setInputValue()​

setInputValue(value): void;

Parameters​

ParameterType
valueany

Returns​

void

Implementation of​

FormElementInterface.setInputValue


setOptions()​

setOptions(options?): any[];

Parameters​

ParameterType
options?FormElementOptions[]

Returns​

any[]


setValue()​

setValue(value, updateInput): void;

Parameters​

ParameterTypeDefault value
valueanyundefined
updateInputbooleantrue

Returns​

void

Implementation of​

FormElementInterface.setValue


show()​

show(): void;

Returns​

void

Implementation of​

FormElementInterface.show


triggerChanged()​

triggerChanged(): void;

Returns​

void


update()​

update(prop, value): void;

Parameters​

ParameterType
propany
valueany

Returns​

void

Properties​

auto_increment?​

optional auto_increment: boolean;

db_type​

db_type: string;

Implementation of​

FormElementInterface.db_type


domElements​

domElements: object;

Index Signature​

[key: string]: HTMLElement

edit?​

optional edit: HTMLElement;

main?​

optional main: HTMLElement;

Implementation of​

FormElementInterface.domElements


editMode​

editMode: boolean;

Implementation of​

FormElementInterface.editMode


events​

events: Events;

Implementation of​

FormElementInterface.events


external​

external: object;

Index Signature​

[key: string]: any

Implementation of​

FormElementInterface.external


filtersMode​

filtersMode: boolean;

Implementation of​

FormElementInterface.filtersMode


formBuilder​

formBuilder: FormBuilder;

Implementation of​

FormElementInterface.formBuilder


help?​

optional help: string;

Implementation of​

FormElementInterface.help


hiddenOnTable?​

optional hiddenOnTable: boolean;

inputs​

inputs: object;

Index Signature​

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

Implementation of​

FormElementInterface.inputs


label​

label: string;

Implementation of​

FormElementInterface.label


mapIsGeo​

mapIsGeo: boolean;

Implementation of​

FormElementInterface.mapIsGeo


name​

name: string;

Implementation of​

FormElementInterface.name


nameChanged​

nameChanged: boolean;

Implementation of​

FormElementInterface.nameChanged


namespace​

namespace: string;

Implementation of​

FormElementInterface.namespace


not_null?​

optional not_null: boolean;

options?​

optional options: FormElementOptions[];

Implementation of​

FormElementInterface.options


optionsDict?​

optional optionsDict: object;

Index Signature​

[key: string]: any

Implementation of​

FormElementInterface.optionsDict


parameterName?​

optional parameterName: string;

Implementation of​

FormElementInterface.parameterName


parameterNameShort?​

optional parameterNameShort: string;

Implementation of​

FormElementInterface.parameterNameShort


placeholder?​

optional placeholder: string;

Implementation of​

FormElementInterface.placeholder


protected?​

optional protected: boolean;

Implementation of​

FormElementInterface.protected


readonly?​

optional readonly: boolean;

Implementation of​

FormElementInterface.readonly


renamable?​

optional renamable: boolean;

searchable?​

optional searchable: boolean;

Implementation of​

FormElementInterface.searchable


showIf?​

optional showIf: Record<string, any>;

templates​

templates: object;

Index Signature​

[key: string]: (data) => string

edit()?​

optional edit: (data) => string;
Parameters​
ParameterType
dataRecord<string, any>
Returns​

string

main()?​

optional main: (data) => string;
Parameters​
ParameterType
dataRecord<string, any>
Returns​

string

Implementation of​

FormElementInterface.templates


type​

type: string;

Implementation of​

FormElementInterface.type


typeLabel​

typeLabel: string;

value​

value: any;

Implementation of​

FormElementInterface.value


visible?​

optional visible: boolean;

Implementation of​

FormElementInterface.visible