Skip to content
MapSVG 8/Documentation

FormElementWithOptionsInterface

Interface: FormElementWithOptionsInterface

Section titled “Interface: FormElementWithOptionsInterface”
destroy(): void;

void

FormElementInterface.destroy


destroyEditor(): void;

void

FormElementInterface.destroyEditor


getData(): object;

object

name: string;
value: any;

FormElementInterface.getData


getDataForTemplate(): any;

any

FormElementInterface.getDataForTemplate


getEditor(): HTMLElement;

HTMLElement

FormElementInterface.getEditor


getSchema(): any;

any

FormElementInterface.getSchema


getValue(): any;

any

FormElementInterface.getValue


hide(): void;

void

FormElementInterface.hide


init(): void;

void

FormElementInterface.init


initEditor(): void;

void

FormElementInterface.initEditor


redraw(): void;

void

FormElementInterface.redraw


setDomElements(): void;

void

FormElementInterface.setDomElements


setEditorEventHandlers(): void;

void

FormElementInterface.setEditorEventHandlers


setEventHandlers(): void;

void

FormElementInterface.setEventHandlers


setExternal(params): void;
ParameterType
paramsany

void

FormElementInterface.setExternal


setInputValue(value): void;
ParameterType
valueany

void

FormElementInterface.setInputValue


setValue(value, updateInput?): void;
ParameterType
valueany
updateInput?boolean

void

FormElementInterface.setValue


show(): void;

void

FormElementInterface.show

asyncOptions: boolean;

db_type: string;

FormElementInterface.db_type


domElements: object;
[key: string]: HTMLElement
optional edit: HTMLElement;
optional main: HTMLElement;

FormElementInterface.domElements


editMode: boolean;

FormElementInterface.editMode


events: Events;

FormElementInterface.events


external: object;
[key: string]: any

FormElementInterface.external


filtersMode: boolean;

FormElementInterface.filtersMode


formBuilder: FormBuilder;

FormElementInterface.formBuilder


optional help: string;

FormElementInterface.help


inputs: object;
[key: string]:
| HTMLSelectElement
| HTMLInputElement
| HTMLTextAreaElement
| HTMLButtonElement
| RadioNodeList

FormElementInterface.inputs


label: string;

FormElementInterface.label


mapIsGeo: boolean;

FormElementInterface.mapIsGeo


name: string;

FormElementInterface.name


nameChanged: boolean;

FormElementInterface.nameChanged


namespace: string;

FormElementInterface.namespace


options: FormElementOptions[];

FormElementInterface.options


optionsDict: object;
[key: string]: any

FormElementInterface.optionsDict


optionsSource: object;
fieldCategory: "meta" | "taxonomy" | "custom";
fieldName: string;
name: string;
type: "object" | "region" | "post";

optional parameterName: string;

FormElementInterface.parameterName


optional parameterNameShort: string;

FormElementInterface.parameterNameShort


optional placeholder: string;

FormElementInterface.placeholder


optional protected: boolean;

FormElementInterface.protected


optional readonly: boolean;

FormElementInterface.readonly


optional searchable: boolean;

FormElementInterface.searchable


templates: object;
[key: string]: (data) => string
optional edit: (data) => string;
ParameterType
dataRecord<string, any>

string

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

string

FormElementInterface.templates


type: string;

FormElementInterface.type


value: any;

FormElementInterface.value


optional visible: boolean;

FormElementInterface.visible