Skip to main content

DistanceFormElement

Hierarchy

Index

Constructors

constructor

Properties

addressField

addressField: boolean

addressFieldPlaceholder

addressFieldPlaceholder: string

optionalauto_increment

auto_increment?: boolean

countries

countries: string[]

country

country: string

db_type

db_type: string

defaultLength

defaultLength: number

distanceControl

distanceControl: string

distanceUnits

distanceUnits: string

distanceUnitsLabel

distanceUnitsLabel: 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

fromLabel

fromLabel: string

optionalhelp

help?: string

optionalhiddenOnTable

hiddenOnTable?: boolean

inputs

inputs: { address: HTMLInputElement; country: HTMLInputElement; geoPoint: HTMLInputElement; length: HTMLInputElement; units: HTMLInputElement }

Type declaration

  • address: HTMLInputElement
  • country: HTMLInputElement
  • geoPoint: HTMLInputElement
  • length: HTMLInputElement
  • units: HTMLInputElement

isGeo

isGeo: boolean

label

label: string

language

language: string

languages

languages: {}[]

mapIsGeo

mapIsGeo: boolean

name

name: string

nameChanged

nameChanged: boolean

namespace

namespace: string

optionalnot_null

not_null?: boolean

optionaloptions

options?: any[]

optionaloptionsDict

optionsDict?: {}

Type declaration

  • [key string]: any

optionalparameterName

parameterName?: string

optionalparameterNameShort

parameterNameShort?: string

optionalplaceholder

placeholder?: string

optionalprotected

protected?: boolean

optionalreadonly

readonly?: boolean

optionalrenamable

renamable?: boolean

searchByZip

searchByZip: boolean

optionalsearchable

searchable?: boolean

optionalshowIf

showIf?: Record<string, any>

spinner

spinner: HTMLElement

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

userLocationButton

userLocationButton: boolean

value

value: { address: string; country: string; geoPoint: { lat: string | number; lng: string | number }; length: number; units: string }

Type declaration

  • address: string
  • country: string
  • geoPoint: { lat: string | number; lng: string | number }
    • lat: string | number
    • lng: string | number
  • length: number
  • units: string

optionalvisible

visible?: boolean

zipLength

zipLength: number

Methods

addSelect2

  • addSelect2(): void
  • Returns void

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(): {}
  • Returns {}

    • [key string]: any

getEditor

  • getEditor(): HTMLElement
  • Returns HTMLElement

getSchema

  • getSchema(): {}
  • Returns {}

    • [p string]: any

getSchemaFieldOptionsList

  • getSchemaFieldOptionsList(): any[]
  • Returns any[]

getValue

  • getValue(): any
  • Returns any

handleAddressFieldChange

  • handleAddressFieldChange(zip: string, data: any, removeSpinner?: boolean): void
  • Parameters

    • zip: string
    • data: any
    • removeSpinner: boolean = false

    Returns void

hide

  • hide(): void
  • Returns void

init

  • init(): void
  • Returns void

initEditor

  • initEditor(): void
  • Returns void

mayBeAddDistanceRow

  • mayBeAddDistanceRow(): void
  • Returns void

redraw

  • redraw(): void
  • Returns void

redrawEditor

  • redrawEditor(): void
  • Returns void

setAddress

  • setAddress(address: string, updateInput?: boolean): void
  • Parameters

    • address: string
    • updateInput: boolean = true

    Returns void

setAddressByUserLocation

  • setAddressByUserLocation(data: any, location: any): void
  • Parameters

    • data: any
    • location: any

    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

setGeoPoint

  • setGeoPoint(geoPoint: { lat: number; lng: number }, updateInput?: boolean): void
  • Parameters

    • geoPoint: { lat: number; lng: number }
    • updateInput: boolean = true

    Returns void

setInputAddressValue

  • setInputAddressValue(address: string): void
  • Parameters

    • address: string

    Returns void

setInputGeoPointValue

  • setInputGeoPointValue(geoPoint: { lat: number; lng: number }): void
  • Parameters

    • geoPoint: { lat: number; lng: number }

    Returns void

setInputLengthValue

  • setInputLengthValue(length: number): void
  • Parameters

    • length: number

    Returns void

setInputValue

  • setInputValue(value: any): void
  • Parameters

    • value: any

    Returns void

setLength

  • setLength(length: string | number, updateInput?: boolean): void
  • Parameters

    • length: string | number
    • updateInput: boolean = true

    Returns void

setOptions

  • setOptions(options?: any[]): any[]
  • Parameters

    • optionaloptions: any[]

    Returns any[]

setValue

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

    • value: any
    • updateInput: boolean = true

    Returns void

show

  • show(): void
  • Returns void

triggerChanged

  • triggerChanged(): void
  • Returns void

update

  • update(prop: any, value: any): void
  • Parameters

    • prop: any
    • value: any

    Returns void