DataSetApi

Provides run-time access to Data Sets

TypeScript
export interface

Methods

MethodReturnsDescription
clearCurrentDataSet()voidClears currently selected Data Set
getCurrentDataSet()DataSet | undefinedRetrieves the currently applied Data Set
getDataSetByName(dataSetName)DataSetRetrieves Data Set from State with given name
getDataSets()DataSet[]Retrieves the Data Sets from Data Set Options
openDataSetSettingsPanel()voidOpens Settings Panel with Data Set section selected and visible
setDataSet(dataSetName)voidLoads the given Data Set (makes it the Current one)

Method Details

clearCurrentDataSet

Clears currently selected Data Set

TypeScript
clearCurrentDataSet(): void;
Returns

void

getCurrentDataSet

Retrieves the currently applied Data Set

TypeScript
getCurrentDataSet(): DataSet | undefined;
Returns

DataSet | undefined

getDataSetByName

Retrieves Data Set from State with given name

TypeScript
getDataSetByName(dataSetName: string): DataSet;
Parameters
ParameterTypeDescription
dataSetNamestringname of Data Set to retrieve
Returns

DataSet

getDataSets

Retrieves the Data Sets from Data Set Options

TypeScript
getDataSets(): DataSet[];
Returns

DataSet[]

openDataSetSettingsPanel

Opens Settings Panel with Data Set section selected and visible

TypeScript
openDataSetSettingsPanel(): void;
Returns

void

setDataSet

Loads the given Data Set (makes it the Current one)

TypeScript
setDataSet(dataSetName: string): void;
Parameters
ParameterTypeDescription
dataSetNamestringName of Data Set to load
Returns

void