Skip to content

DataSetSelector

Type class

DataSetSelector is a tool for selecting data set's as main and for comparing with main data set.

Sources

This information about DataSetSelector is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.

Inheritance

DataSetSelector does not extend any other symbol.

DataSetSelector is not extended by any other symbol.

Properties

comboBoxSelectText

Type stringDefault Select...

Text displayed in the "compare to" combobox (when position is "top" or "bottom").

compareText

Type stringDefault Compare to:

Text displayed near "compare to" list.

listeners

Type object[]

You can add listeners of events using this property. Example: listeners = [{"event":"dataSetCompared", "method":handleEvent}];

listHeight

Type numberDefault 150

The maximum height of the Compare to field in pixels.

position

Type stringDefault right, left, top, bottom

Possible values: "right", "left", "top", "bottom". "top" and "bottom" positions has a limitation - only one data set can be selected for comparing.

selectText

Type stringDefault Select:

Text displayed near "Select" dropDown.

width

Type numberDefault 180

Width of a Data set selector, when position is "left" or "right".

Methods

addListener()

Returns Adds event listener to the object.

type - string like 'dataSetSelected' (listed in 'events' section of this class). handler - function which is called when event happens

removeListener()

Returns Removes event listener from the object.

Events

dataSetCompared

Param { type: "dataSetCompared", target: DataSetSelector } & {type:"dataSetCompared", dataSet:dataSet}

Dispatched when the data set is selected for comparing.

dataSetSelected

Param { type: "dataSetSelected", target: DataSetSelector } & {type:"dataSetSelected", dataSet:dataSet}

Dispatched when the main data set is changed.

dataSetUncompared

Param { type: "dataSetUncompared", target: DataSetSelector } & {type:"dataSetUncompared", dataSet:dataSet}

Dispatched when the data set which was selected for comparing is unselected.