Common.DataTabsController Class
A class for managing data grid tabs.
Constructor
Common.DataTabsController
()
Example:
new DataTabs({
map: {map},
containerId: {string},
customFields: {object} (optional)
});
Item Index
Methods
addDataTab
(
-
layer
-
refreshOnExtent
Adds a new data tab based on the input feature layer.
Parameters:
-
layer
Featurelayer -
refreshOnExtent
Boolean
addFeatureCollTab
(
-
layer
Adds a new data tab based on the input feature layer created from a feature collection. The tab will not refresh the grid on extent changes.
Parameters:
-
layer
Featurelayer
addGraphicsTab
(
-
layer
Adds a new data tab based on the input graphics layer. The tab will not refresh the grid on extent changes.
Parameters:
-
layer
GraphicsLayer
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.
initialize
()
private
Initializes the component logic and UI.
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