Options
All
  • Public
  • Public/Protected
  • All
Menu

Default view model for a TableView.

Hierarchy

Index

Constructors

constructor

Properties

Protected _isDestroyed

_isDestroyed: boolean

app

columns

An observable collection of column headers for the table

currentCollectionId

currentCollectionId: Observable<string>

editMode

editMode: Observable<boolean>

An observable indicating whether the table is in edit mode.

hasUnsavedChanges

hasUnsavedChanges: Observable<boolean>

An observable indicating whether the table has outstanding edits.

id

id: string

libraryId

libraryId: string

onFilterChange

onFilterChange: function

The function to update the feature count displayed in the header when a filter is applied.

Type declaration

    • (): void
    • Returns void

options

options: TableOptions

An object containing the configurable options for the table.

recordClickEvent

recordClickEvent: function

The event to fire when a particular record is clicked with the particular record as context parameter

Type declaration

recordHoverDuration

recordHoverDuration: number

The amount of time (in milliseconds) after which a hover on a record is considered a hover. Defaults to 0ms.

recordHoverEndEvent

recordHoverEndEvent: function

The event to fire when a particular record ceases to be hovered upon.

Type declaration

recordHoverEvent

recordHoverEvent: function

The event to fire when a particular record is hovered on for a preset duration (300ms default) with the particular record as context parameter

Type declaration

recordLongPressDuration

recordLongPressDuration: number

The amount of time (in milliseconds) after which a press on a record is considered a long press. Defaults to 1000ms.

recordLongPressEvent

recordLongPressEvent: function

The event to fire when a particular record is pressed for a preset duration (1000ms default) with the particular record as context parameter

Type declaration

rows

The various records (rows) contained in this table

Methods

auto

  • auto(arg0: any, arg1: any, arg2: any): void
  • Binds a handler to an Observable or to a dojo.connect. Binding to an Observable:

    ``` this.auto(someObservable, function (newValue) { });

    with explicit scope:

    this.auto(someObservable, this, function (newValue) { });

    Alternately, pass an event name as a string to use dojo.connect:

    this.auto(window, "onclick", function () { }); ```

    Parameters

    • arg0: any

      Either an Observable (for observable bindings) or a regular object (if arg1 is a string)

    • arg1: any

      If arg0 is an Observable, a function or scope object. Otherwise, an event name (to use with dojo.connect).

    • arg2: any

      If arg0 is an Observable, a function handler.

    Returns void

destroy

  • destroy(): void
  • Destroys the object completely

    Returns void

destroyBindings

  • destroyBindings(): void

getResource

  • getResource(resourceKey: string, locale?: string): string
  • Gets a language resource from the Application's resource dictionary, given a key, and optional locale. Returns null if the resource does not exist.

    Parameters

    • resourceKey: string
    • Optional locale: string

      The locale of the resource to fetch. Defaults to the current application locale.

    Returns string

initialize

  • initialize(config: any): void

onDestroy

  • onDestroy(): void
  • Override or attach to provide custom clean-up behaviour.

    Returns void

syncCollectionId

  • syncCollectionId(featureSetId: Observable<string>): void
  • Parameters

    Returns void

syncColumns

syncRows

trackCommandHandler

  • trackCommandHandler(command: any, token: any): void
  • Tracks a subscription to an {@link geocortex.framework.commands.Command}, disposing it when this object is disposed with the destroy method.

    Parameters

    • command: any
    • token: any

    Returns void

trackSubscription

  • trackSubscription(event: any, token: any): void
  • Tracks a subscription to an {@link geocortex.framework.events.Event}, disposing it when this object is disposed with the destroy method.

    Parameters

    • event: any
    • token: any

    Returns void