Skip to main content

SchemaModel

Schema Model class

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns SchemaModel

Properties

dirtyFields

dirtyFields: string[]

initialLoad

initialLoad: boolean = true

schema

schema: Schema

Methods

build

  • build(params: any): void
  • Parameters

    • params: any

    Returns void

clearDirtyFields

  • clearDirtyFields(): void
  • Returns void

clone

  • Returns Model

get

  • get(key: string): any
  • Parameters

    • key: string

    Returns any

getData

  • getData(): {}
  • Returns {}

    • [key string]: any

getDirtyFields

  • getDirtyFields(): {}
  • Returns {}

    • [key string]: any

getLocationField

  • Returns SchemaField

getMarkerImage

  • getMarkerImage(): string
  • Returns string

getRegions

  • getRegions(regionsTableName: string): { id: string; title: string }[]
  • Parameters

    • regionsTableName: string

    Returns { id: string; title: string }[]

getRegionsForTable

  • getRegionsForTable(regionsTableName: string): { id: string; title: string }[]
  • Parameters

    • regionsTableName: string

    Returns { id: string; title: string }[]

isMarkerFieldChanged

  • isMarkerFieldChanged(params: {}): boolean
  • Parameters

    • params: {}

    Returns boolean

isMarkersByFieldEnabled

  • isMarkersByFieldEnabled(): boolean
  • Returns boolean

linkToRegions

  • linkToRegions(regions: Region[], tableName: string): void
  • Parameters

    • regions: Region[]
    • tableName: string

    Returns void

reloadMarkerImage

  • reloadMarkerImage(): void
  • Returns void

set

  • set(key: string, value: any): void
  • Parameters

    • key: string
    • value: any

    Returns void

setLocationField

  • setLocationField(): void
  • Returns void

update

  • update(params: any): void
  • Parameters

    • params: any

    Returns void