Class: LocationFormElement
Extends
Constructors
Constructor
new LocationFormElement(
options,
formBuilder,
external): LocationFormElement;
Parameters
| Parameter | Type |
|---|---|
options | SchemaField |
formBuilder | FormBuilder |
external | { [key: string]: any; } |
Returns
LocationFormElement
Overrides
Methods
addSelect2()
addSelect2(): void;
Returns
void
Inherited from
deleteMarker()
deleteMarker(): void;
Returns
void
destroy()
destroy(): void;
Returns
void
Overrides
destroyEditor()
destroyEditor(): void;
Returns
void
Inherited from
fillMarkersByFieldOptions()
fillMarkersByFieldOptions(fieldName): Promise<{
}>;
Parameters
| Parameter | Type |
|---|---|
fieldName | any |
Returns
Promise<{
}>
getData()
getData(): object;
Returns
object
name
name: string;
value
value: any;
Overrides
getDataForTemplate()
getDataForTemplate(): object;
Returns
object
Overrides
FormElement.getDataForTemplate
getEditor()
getEditor(): HTMLElement;
Returns
HTMLElement
Inherited from
getMarkerImage()
getMarkerImage(data): string;
Parameters
| Parameter | Type |
|---|---|
data | { [key: string]: any; } |
Returns
string
getOptions()
getOptions(): Promise<FormElementOptions[]>;
Returns
Promise<FormElementOptions[]>
Inherited from
getSchema()
getSchema(): object;
Returns
object
Overrides
getSchemaFieldOptionsList()
getSchemaFieldOptionsList(): any[];
Returns
any[]
Inherited from
FormElement.getSchemaFieldOptionsList
getValue()
getValue(): any;
Returns
any
Inherited from
hide()
hide(): void;
Returns
void
Inherited from
init()
init(): void;
Returns
void
Overrides
initEditor()
initEditor(): void;
Returns
void
Overrides
markerIconUpload()
markerIconUpload(input): void;
Upload new marker icon
Parameters
| Parameter | Type | Description |
|---|---|---|
input | any |
Returns
void
mayBeAddDistanceRow()
mayBeAddDistanceRow(): void;
Returns
void
redraw()
redraw(): void;
Returns
void
Inherited from
redrawEditor()
redrawEditor(): void;
Returns
void
Inherited from
renderMarker()
renderMarker(marker?): void;
Parameters
| Parameter | Type |
|---|---|
marker? | Marker |
Returns
void
renderMarkerHtml()
renderMarkerHtml(): void;
Returns
void
renderMarkerSelector()
renderMarkerSelector(): void;
Returns
void
resetMarkersByField()
resetMarkersByField(): void;
Returns
void
setDefaultMarkerPath()
setDefaultMarkerPath(path): void;
Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
void
setDomElements()
setDomElements(): void;
Returns
void
Overrides
setEditorEventHandlers()
setEditorEventHandlers(): void;
Returns
void
Overrides
FormElement.setEditorEventHandlers
setEventHandlers()
setEventHandlers(): void;
Returns
void
Overrides
setExternal()
setExternal(params): void;
Parameters
| Parameter | Type |
|---|---|
params | any |
Returns
void
Inherited from
setInputValue()
setInputValue(value): void;
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
void
Inherited from
setMarkerByField()
setMarkerByField(fieldId, markerImg): void;
Parameters
| Parameter | Type |
|---|---|
fieldId | any |
markerImg | any |
Returns
void
setMarkersByField()
setMarkersByField(options): void;
Parameters
| Parameter | Type |
|---|---|
options | { [key: string]: string; } |
Returns
void
setOptions()
setOptions(options?): any[];
Parameters
| Parameter | Type |
|---|---|
options? | FormElementOptions[] |
Returns
any[]
Inherited from
setValue()
setValue(value, updateInput): void;
Parameters
| Parameter | Type | Default value |
|---|---|---|
value | any | undefined |
updateInput | boolean | true |
Returns
void
Overrides
show()
show(): void;
Returns
void
Inherited from
toggleMarkerSelector()
toggleMarkerSelector(): void;
Returns
void
toggleMarkerSelectorInLocationEditor()
toggleMarkerSelectorInLocationEditor(jQueryObj, e): void;
Parameters
| Parameter | Type |
|---|---|
jQueryObj | any |
e | any |
Returns
void
triggerChanged()
triggerChanged(): void;
Returns
void
Inherited from
update()
update(prop, value): void;
Parameters
| Parameter | Type |
|---|---|
prop | any |
value | any |
Returns
void
Inherited from
Properties
auto_increment?
optional auto_increment: boolean;
Inherited from
backupData?
optional backupData: object;
location
location: Location;
Marker
Marker: Marker;
db_type
db_type: string;
Inherited from
defaultMarkerPath
defaultMarkerPath: string;
domElements
domElements: object;
Index Signature
[key: string]: HTMLElement
edit?
optional edit: HTMLElement;
main?
optional main: HTMLElement;
Inherited from
editMode
editMode: boolean;
Inherited from
events
events: Events;
Inherited from
external
external: object;
Index Signature
[key: string]: any
Inherited from
filtersMode
filtersMode: boolean;
Inherited from
formBuilder
formBuilder: FormBuilder;
Inherited from
help?
optional help: string;
Inherited from
hiddenOnTable?
optional hiddenOnTable: boolean;
Inherited from
inputs
inputs: object;
Index Signature
[key: string]:
| HTMLSelectElement
| HTMLInputElement
| HTMLTextAreaElement
| HTMLButtonElement
| RadioNodeList
Inherited from
isGeo
isGeo: boolean;
label
label: string;
Inherited from
language
language: string;
languages
languages: object[];
label
label: string;
value
value: string;
location
location: Location;
mapIsGeo
mapIsGeo: boolean;
Inherited from
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
nameChanged
nameChanged: boolean;
Inherited from
namespace
namespace: string;
Inherited from
not_null?
optional not_null: boolean;
Inherited from
options?
optional options: FormElementOptions[];
Inherited from
optionsDict?
optional optionsDict: object;
Index Signature
[key: string]: any
Inherited from
parameterName?
optional parameterName: string;
Inherited from
parameterNameShort?
optional parameterNameShort: string;
Inherited from
FormElement.parameterNameShort
placeholder?
optional placeholder: string;
Inherited from
protected?
optional protected: boolean;
Inherited from
readonly?
optional readonly: boolean;
Inherited from
renamable?
optional renamable: boolean;
Inherited from
searchable?
optional searchable: boolean;
Inherited from
showIf?
optional showIf: Record<string, any>;
Inherited from
templates
templates: object;
Index Signature
[key: string]: (data) => string
edit()?
optional edit: (data) => string;
Parameters
| Parameter | Type |
|---|---|
data | Record<string, any> |
Returns
string
main()?
optional main: (data) => string;
Parameters
| Parameter | Type |
|---|---|
data | Record<string, any> |
Returns
string
Inherited from
type
type: string;
Inherited from
typeLabel
typeLabel: string;
Inherited from
value
value: any;
Inherited from
visible?
optional visible: boolean;