Skip to main content

Class: LocationFormElement

Extends

Constructors

Constructor

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

Parameters

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

Returns

LocationFormElement

Overrides

FormElement.constructor

Methods

addSelect2()

addSelect2(): void;

Returns

void

Inherited from

FormElement.addSelect2


deleteMarker()

deleteMarker(): void;

Returns

void


destroy()

destroy(): void;

Returns

void

Overrides

FormElement.destroy


destroyEditor()

destroyEditor(): void;

Returns

void

Inherited from

FormElement.destroyEditor


fillMarkersByFieldOptions()

fillMarkersByFieldOptions(fieldName): Promise<{
}>;

Parameters

ParameterType
fieldNameany

Returns

Promise<{ }>


getData()

getData(): object;

Returns

object

name
name: string;
value
value: any;

Overrides

FormElement.getData


getDataForTemplate()

getDataForTemplate(): object;

Returns

object

Overrides

FormElement.getDataForTemplate


getEditor()

getEditor(): HTMLElement;

Returns

HTMLElement

Inherited from

FormElement.getEditor


getMarkerImage()

getMarkerImage(data): string;

Parameters

ParameterType
data{ [key: string]: any; }

Returns

string


getOptions()

getOptions(): Promise<FormElementOptions[]>;

Returns

Promise<FormElementOptions[]>

Inherited from

FormElement.getOptions


getSchema()

getSchema(): object;

Returns

object

Overrides

FormElement.getSchema


getSchemaFieldOptionsList()

getSchemaFieldOptionsList(): any[];

Returns

any[]

Inherited from

FormElement.getSchemaFieldOptionsList


getValue()

getValue(): any;

Returns

any

Inherited from

FormElement.getValue


hide()

hide(): void;

Returns

void

Inherited from

FormElement.hide


init()

init(): void;

Returns

void

Overrides

FormElement.init


initEditor()

initEditor(): void;

Returns

void

Overrides

FormElement.initEditor


markerIconUpload()

markerIconUpload(input): void;

Upload new marker icon

Parameters

ParameterTypeDescription
inputany

Returns

void


mayBeAddDistanceRow()

mayBeAddDistanceRow(): void;

Returns

void


redraw()

redraw(): void;

Returns

void

Inherited from

FormElement.redraw


redrawEditor()

redrawEditor(): void;

Returns

void

Inherited from

FormElement.redrawEditor


renderMarker()

renderMarker(marker?): void;

Parameters

ParameterType
marker?Marker

Returns

void


renderMarkerHtml()

renderMarkerHtml(): void;

Returns

void


renderMarkerSelector()

renderMarkerSelector(): void;

Returns

void


resetMarkersByField()

resetMarkersByField(): void;

Returns

void


setDefaultMarkerPath()

setDefaultMarkerPath(path): void;

Parameters

ParameterType
pathstring

Returns

void


setDomElements()

setDomElements(): void;

Returns

void

Overrides

FormElement.setDomElements


setEditorEventHandlers()

setEditorEventHandlers(): void;

Returns

void

Overrides

FormElement.setEditorEventHandlers


setEventHandlers()

setEventHandlers(): void;

Returns

void

Overrides

FormElement.setEventHandlers


setExternal()

setExternal(params): void;

Parameters

ParameterType
paramsany

Returns

void

Inherited from

FormElement.setExternal


setInputValue()

setInputValue(value): void;

Parameters

ParameterType
valueany

Returns

void

Inherited from

FormElement.setInputValue


setMarkerByField()

setMarkerByField(fieldId, markerImg): void;

Parameters

ParameterType
fieldIdany
markerImgany

Returns

void


setMarkersByField()

setMarkersByField(options): void;

Parameters

ParameterType
options{ [key: string]: string; }

Returns

void


setOptions()

setOptions(options?): any[];

Parameters

ParameterType
options?FormElementOptions[]

Returns

any[]

Inherited from

FormElement.setOptions


setValue()

setValue(value, updateInput): void;

Parameters

ParameterTypeDefault value
valueanyundefined
updateInputbooleantrue

Returns

void

Overrides

FormElement.setValue


show()

show(): void;

Returns

void

Inherited from

FormElement.show


toggleMarkerSelector()

toggleMarkerSelector(): void;

Returns

void


toggleMarkerSelectorInLocationEditor()

toggleMarkerSelectorInLocationEditor(jQueryObj, e): void;

Parameters

ParameterType
jQueryObjany
eany

Returns

void


triggerChanged()

triggerChanged(): void;

Returns

void

Inherited from

FormElement.triggerChanged


update()

update(prop, value): void;

Parameters

ParameterType
propany
valueany

Returns

void

Inherited from

FormElement.update

Properties

auto_increment?

optional auto_increment: boolean;

Inherited from

FormElement.auto_increment


backupData?

optional backupData: object;

location

location: Location;

Marker

Marker: Marker;

db_type

db_type: string;

Inherited from

FormElement.db_type


defaultMarkerPath

defaultMarkerPath: string;

domElements

domElements: object;

Index Signature

[key: string]: HTMLElement

edit?

optional edit: HTMLElement;

main?

optional main: HTMLElement;

Inherited from

FormElement.domElements


editMode

editMode: boolean;

Inherited from

FormElement.editMode


events

events: Events;

Inherited from

FormElement.events


external

external: object;

Index Signature

[key: string]: any

Inherited from

FormElement.external


filtersMode

filtersMode: boolean;

Inherited from

FormElement.filtersMode


formBuilder

formBuilder: FormBuilder;

Inherited from

FormElement.formBuilder


help?

optional help: string;

Inherited from

FormElement.help


hiddenOnTable?

optional hiddenOnTable: boolean;

Inherited from

FormElement.hiddenOnTable


inputs

inputs: object;

Index Signature

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

Inherited from

FormElement.inputs


isGeo

isGeo: boolean;

label

label: string;

Inherited from

FormElement.label


language

language: string;

languages

languages: object[];

label

label: string;

value

value: string;

location

location: Location;

mapIsGeo

mapIsGeo: boolean;

Inherited from

FormElement.mapIsGeo


marker

marker: Marker;

markerField

markerField: string;

markerImages

markerImages: object[];

file

file: string;

folder

folder: string;

relativeUrl?

optional relativeUrl: string;

url

url: string;

markersByField

markersByField: object;

Index Signature

[key: string]: any

markersByFieldEnabled

markersByFieldEnabled: boolean;

name

name: string;

Inherited from

FormElement.name


nameChanged

nameChanged: boolean;

Inherited from

FormElement.nameChanged


namespace

namespace: string;

Inherited from

FormElement.namespace


not_null?

optional not_null: boolean;

Inherited from

FormElement.not_null


options?

optional options: FormElementOptions[];

Inherited from

FormElement.options


optionsDict?

optional optionsDict: object;

Index Signature

[key: string]: any

Inherited from

FormElement.optionsDict


parameterName?

optional parameterName: string;

Inherited from

FormElement.parameterName


parameterNameShort?

optional parameterNameShort: string;

Inherited from

FormElement.parameterNameShort


placeholder?

optional placeholder: string;

Inherited from

FormElement.placeholder


protected?

optional protected: boolean;

Inherited from

FormElement.protected


readonly?

optional readonly: boolean;

Inherited from

FormElement.readonly


renamable?

optional renamable: boolean;

Inherited from

FormElement.renamable


searchable?

optional searchable: boolean;

Inherited from

FormElement.searchable


showIf?

optional showIf: Record<string, any>;

Inherited from

FormElement.showIf


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

Inherited from

FormElement.templates


type

type: string;

Inherited from

FormElement.type


typeLabel

typeLabel: string;

Inherited from

FormElement.typeLabel


value

value: any;

Inherited from

FormElement.value


visible?

optional visible: boolean;

Inherited from

FormElement.visible