Skip to main content

FormBuilder

Generates a Form by provided Schema

Index

Constructors

constructor

Properties

admin

admin: any

optionalbackupData

backupData?: { location: Location; marker: Marker }

Type declaration

clearButton

clearButton: boolean

clearButtonText

clearButtonText: string

closeOnSave

closeOnSave: boolean

container

container: HTMLElement

currentlyEditing

currentlyEditing: FormElementInterface

data

data: {}

Type declaration

  • [key string]: any

editMode

editMode: boolean

optionaleditingMarker

editingMarker?: Marker

elements

elements: {}

Type declaration

  • [key string]: {}

events

events: Events

filtersHide

filtersHide: boolean

filtersMode

filtersMode: boolean

form

form: HTMLFormElement

formEditor

formEditor: HTMLFormElement

formElementFactory

formElementFactory: FormElementFactory

formElements

isLoading

isLoading: boolean

location

location: Location

mapsvg

mapsvg: MapSVGMap

markerBackup

markerBackup: { geoPoint: GeoPoint; id: string; src: string; svgPoint: SVGPoint }

Type declaration

mediaUploader

mediaUploader: any

mediaUploaderisOpenedFor

mediaUploaderisOpenedFor: FormElementInterface

modal

modal: boolean

namespace

namespace: string

newRecord

newRecord: boolean

parent

saved

saved: boolean

schema

schema: Schema

scrollApi

scrollApi: any

scrollable

scrollable: boolean

searchButton

searchButton: boolean

searchButtonText

searchButtonText: string

showButtonText

showButtonText: string

showFiltersButton

showFiltersButton: FormElementInterface

showNames

showNames: boolean

sortable

sortable: any

structureChanged

structureChanged: boolean

template

template: string

templates

templates: {}

Type declaration

  • [key string]: () => void

types

types: string[]

view

view: HTMLElement

Methods

addField

close

  • close(): void
  • Returns void

deleteField

destroy

  • destroy(): void
  • Returns void

edit

get

  • get(): void
  • Returns void

getData

  • getData(): {}
  • Returns {}

    • [key string]: any

getExtraParams

  • getExtraParams(): { databaseFields: any[]; databaseFieldsFilterableShort: any[]; markerFieldsShort: any[]; regionFields: string[] }
  • Returns { databaseFields: any[]; databaseFieldsFilterableShort: any[]; markerFieldsShort: any[]; regionFields: string[] }

    • databaseFields: any[]
    • databaseFieldsFilterableShort: any[]
    • markerFieldsShort: any[]
    • regionFields: string[]

getForm

  • getForm(): HTMLFormElement
  • Returns HTMLFormElement

getFormEditor

  • getFormEditor(): HTMLFormElement
  • Returns HTMLFormElement

getFormElementByName

getFormElementByType

getRegionsAsArray

getRegionsList

  • getRegionsList(): { id: string; title: string }[]
  • Returns { id: string; title: string }[]

getSchema

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

init

  • init(): void
  • Returns void

redraw

  • redraw(): void
  • Returns void

reset

  • reset(): void
  • Returns void

save

  • save(): void
  • Returns void

setEventHandlers

  • setEventHandlers(): void
  • Returns void

setFormElementEventHandlers

setIsLoading

  • setIsLoading(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

toJSON

  • toJSON(addEmpty: any): {}
  • Parameters

    • addEmpty: any

    Returns {}

    update

    • update(data: {}): void
    • Parameters

      • data: {}

      Returns void

    updateExtraParamsInFormElements

    • updateExtraParamsInFormElements(): void
    • Returns void

    viewDidLoad

    • viewDidLoad(): void
    • Returns void