Skip to main content

Filters

Schema class contains the list of fields with their options for MapSVG database or regions tables

Hierarchy

Index

Constructors

constructor

Properties

apiBaseUrl

apiBaseUrl: string

optionalapiEndpoints

apiEndpoints?: ApiEndpoints

optionalauthorization

authorization?: AuthorizationCredentials

events

events: Events

optionalfields

id

id: number

lastChangeTime

lastChangeTime: number

model

name

name: string

objectNamePlural

objectNamePlural: string

objectNameSingular

objectNameSingular: string

remote

remote: boolean

strict

strict: boolean

optionaltitle

title?: string

type

Methods

addField

  • addField(field: Record<string, unknown> | SchemaField): void
  • Parameters

    Returns void

build

  • build(options: any): void
  • Parameters

    • options: any

    Returns void

getColumns

  • getColumns(filters: any): any[]
  • Parameters

    • filters: any

    Returns any[]

getData

getField

  • Parameters

    • field: any

    Returns SchemaField

getFieldByType

  • getFieldByType(type: any): any
  • Parameters

    • type: any

    Returns any

getFieldNames

  • getFieldNames(): string[]
  • Returns string[]

getFields

loaded

  • loaded(): boolean
  • Returns boolean

setApiBaseUrl

  • setApiBaseUrl(url: string): void
  • Parameters

    • url: string

    Returns void

setApiEndpoints

setAuthorization

setFields

  • setFields(fields: any[]): void
  • Parameters

    • fields: any[]

    Returns void

setId

  • setId(id: number): void
  • Parameters

    • id: number

    Returns void

setName

  • setName(name: string): void
  • Parameters

    • name: string

    Returns void

setObjectNamePlural

  • setObjectNamePlural(namePlural: string): void
  • Parameters

    • namePlural: string

    Returns void

setObjectNameSingular

  • setObjectNameSingular(nameSingular: string): void
  • Parameters

    • nameSingular: string

    Returns void

setRemote

  • setRemote(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

setStrict

  • setStrict(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

setTitle

  • setTitle(title: string): void
  • Parameters

    • title: string

    Returns void

setType

  • Parameters

    Returns void

update

  • update(options: any): void
  • Parameters

    • options: any

    Returns void