DistanceFormElement
Hierarchy
- FormElement
- DistanceFormElement
Index
Constructors
Properties
- addressField
- addressFieldPlaceholder
- auto_increment
- countries
- country
- db_type
- defaultLength
- distanceControl
- distanceUnits
- distanceUnitsLabel
- domElements
- editMode
- events
- external
- filtersMode
- formBuilder
- fromLabel
- help
- hiddenOnTable
- inputs
- isGeo
- label
- language
- languages
- mapIsGeo
- name
- nameChanged
- namespace
- not_null
- options
- optionsDict
- parameterName
- parameterNameShort
- placeholder
- protected
- readonly
- renamable
- searchByZip
- searchable
- showIf
- spinner
- templates
- type
- userLocationButton
- value
- visible
- zipLength
Methods
- addSelect2
- destroy
- destroyEditor
- getData
- getDataForTemplate
- getEditor
- getSchema
- getSchemaFieldOptionsList
- getValue
- handleAddressFieldChange
- hide
- init
- initEditor
- mayBeAddDistanceRow
- redraw
- redrawEditor
- setAddress
- setAddressByUserLocation
- setDomElements
- setEditorEventHandlers
- setEventHandlers
- setExternal
- setGeoPoint
- setInputAddressValue
- setInputGeoPointValue
- setInputLengthValue
- setInputValue
- setLength
- setOptions
- setValue
- show
- triggerChanged
- update
Constructors
constructor
Parameters
options: SchemaField
formBuilder: FormBuilder
external: {}
Returns DistanceFormElement
Properties
addressField
addressFieldPlaceholder
optionalauto_increment
countries
country
db_type
defaultLength
distanceControl
distanceUnits
distanceUnitsLabel
domElements
Type declaration
[key string]: HTMLElement
optionaledit?: HTMLElement
optionalmain?: HTMLElement
editMode
events
external
Type declaration
[key string]: any
filtersMode
formBuilder
fromLabel
optionalhelp
optionalhiddenOnTable
inputs
Type declaration
address: HTMLInputElement
country: HTMLInputElement
geoPoint: HTMLInputElement
length: HTMLInputElement
units: HTMLInputElement
isGeo
label
language
languages
mapIsGeo
name
nameChanged
namespace
optionalnot_null
optionaloptions
optionaloptionsDict
Type declaration
[key string]: any
optionalparameterName
optionalparameterNameShort
optionalplaceholder
optionalprotected
optionalreadonly
optionalrenamable
searchByZip
optionalsearchable
optionalshowIf
spinner
templates
Type declaration
[key string]: (data: Record<string, any>) => string
optionaledit?: (data: Record<string, any>) => string
Parameters
data: Record<string, any>
Returns string
optionalmain?: (data: Record<string, any>) => string
Parameters
data: Record<string, any>
Returns string
type
userLocationButton
value
Type declaration
address: string
country: string
geoPoint: { lat: string | number; lng: string | number }
lat: string | number
lng: string | number
length: number
units: string
optionalvisible
zipLength
Methods
addSelect2
Returns void
destroy
Returns void
destroyEditor
Returns void
getData
Returns { name: string; value: any }
name: string
value: any
getDataForTemplate
Returns {}
[key string]: any
getEditor
Returns HTMLElement
getSchema
Returns {}
[p string]: any
getSchemaFieldOptionsList
Returns any[]
getValue
Returns any
handleAddressFieldChange
Parameters
zip: string
data: any
removeSpinner: boolean = false
Returns void
hide
Returns void
init
Returns void
initEditor
Returns void
mayBeAddDistanceRow
Returns void
redraw
Returns void
redrawEditor
Returns void
setAddress
Parameters
address: string
updateInput: boolean = true
Returns void
setAddressByUserLocation
Parameters
data: any
location: any
Returns void
setDomElements
Returns void
setEditorEventHandlers
Returns void
setEventHandlers
Returns void
setExternal
Parameters
params: any
Returns void
setGeoPoint
Parameters
geoPoint: { lat: number; lng: number }
updateInput: boolean = true
Returns void
setInputAddressValue
Parameters
address: string
Returns void
setInputGeoPointValue
Parameters
geoPoint: { lat: number; lng: number }
Returns void
setInputLengthValue
Parameters
length: number
Returns void
setInputValue
Parameters
value: any
Returns void
setLength
Parameters
length: string | number
updateInput: boolean = true
Returns void
setOptions
Parameters
optionaloptions: any[]
Returns any[]
setValue
Parameters
value: any
updateInput: boolean = true
Returns void
show
Returns void
triggerChanged
Returns void
update
Parameters
prop: any
value: any
Returns void