FormBuilder
Index
Constructors
Properties
- admin
- backupData
- clearButton
- clearButtonText
- closeOnSave
- container
- currentlyEditing
- data
- editMode
- editingMarker
- elements
- events
- filtersHide
- filtersMode
- form
- formEditor
- formElementFactory
- formElements
- isLoading
- location
- mapsvg
- markerBackup
- mediaUploader
- mediaUploaderisOpenedFor
- modal
- namespace
- newRecord
- parent
- saved
- schema
- scrollApi
- scrollable
- searchButton
- searchButtonText
- showButtonText
- showFiltersButton
- showNames
- sortable
- structureChanged
- template
- templates
- types
- view
Methods
Constructors
constructor
Parameters
options: {}
Returns FormBuilder
Properties
admin
optionalbackupData
clearButton
clearButtonText
closeOnSave
container
currentlyEditing
data
Type declaration
[key string]: any
editMode
optionaleditingMarker
elements
Type declaration
[key string]: {}
events
filtersHide
filtersMode
form
formEditor
formElementFactory
formElements
isLoading
location
mapsvg
markerBackup
mediaUploader
mediaUploaderisOpenedFor
modal
namespace
newRecord
parent
saved
schema
scrollApi
scrollable
searchButton
searchButtonText
showButtonText
showFiltersButton
showNames
sortable
structureChanged
template
templates
Type declaration
[key string]: () => void
types
view
Methods
addField
Parameters
formElement: FormElementInterface
Returns FormElementInterface
close
Returns void
deleteField
Parameters
formElement: FormElement
Returns void
destroy
Returns void
edit
Parameters
formElement: FormElementInterface
Returns void
get
Returns void
getData
Returns {}
[key string]: any
getExtraParams
Returns { databaseFields: any[]; databaseFieldsFilterableShort: any[]; markerFieldsShort: any[]; regionFields: string[] }
databaseFields: any[]
databaseFieldsFilterableShort: any[]
markerFieldsShort: any[]
regionFields: string[]
getForm
Returns HTMLFormElement
getFormEditor
Returns HTMLFormElement
getFormElementByName
Parameters
name: string
Returns FormElementInterface
getFormElementByType
Parameters
type: string
Returns FormElementInterface
getRegionsAsArray
Returns Region[]
getRegionsList
Returns { id: string; title: string }[]
getSchema
Returns any[]
init
Returns void
redraw
Returns void
reset
Returns void
save
Returns void
setEventHandlers
Returns void
setFormElementEventHandlers
Parameters
formElement: FormElementInterface
Returns void
setIsLoading
Parameters
value: boolean
Returns void
toJSON
Parameters
addEmpty: any
Returns {}
update
Parameters
data: {}
Returns void
updateExtraParamsInFormElements
Returns void
viewDidLoad
Returns void
Generates a Form by provided Schema