A class for managing data grid tabs.

Methods

addDataTab

(
  • layer
)

Adds a new data tab based on a the layer input.

Parameters:

  • layer Featurelayer

buildDataGrid

(
  • layer
  • featureSet
)

Create the data grid associated with the inpu layer.

Parameters:

  • layer FeatureLayer
  • featureSet FeatureSet

formatDate

() String

Utility function for formatting date values.

Returns:

String:

strDate A human readable date string.

querylayer

(
  • layer
  • callback
)

Queries the input layer for records.

Parameters:

  • layer FeatureLayer
  • callback Function

refreshActiveTab

()

Refresh the data source for the currently visible data grid tab.

removeDataTab

(
  • layer
)

Removes the data tab associated with the input layer.

Parameters:

  • layer FeatureLayer

updateDataGrid

(
  • layer
  • featureSet
)

Updates the associated layer's data grid.

Parameters:

  • layer FeatureLayer
  • featureSet FeatureSet