Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geocortex/framework/utils/ViewUtils"

Index

Functions

cancelAllThrottledOperations

  • cancelAllThrottledOperations(collection: any): void
  • Cancel all throttled operations on the given collection object TODO: Proper typing

    Parameters

    • collection: any

    Returns void

createWidgetViewFromConfig

  • createWidgetViewFromConfig(widgetConfig: any, currentContext: any, app: Application): ViewBase
  • Creates a new view, given a WidgetConfig object.

    Parameters

    • widgetConfig: any
    • currentContext: any
    • app: Application

    Returns ViewBase

isTruthy

  • isTruthy(thing: any): boolean
  • Given some sort of thing, decide whether or not it is "truthy". Works with ObservableCollection.

    Parameters

    • thing: any

      The thing to check truthiness upon.

    Returns boolean

optionMatchesValue

  • optionMatchesValue(opt: HTMLOptGroupElement, indexedValue: any, newValue: any): boolean
  • Take @attached-value into consideration when looking for matches.

    Parameters

    • opt: HTMLOptGroupElement
    • indexedValue: any
    • newValue: any

    Returns boolean