DataSetSelector

Type class

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

Inheritance

DataSetSelector does not extend any other symbol.

DataSetSelector is not extended by any other symbol.

Properties

comboBoxSelectText
#

Type string

Default Select...

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

compareText
#

Type string

Default 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 number

Default 150

The maximum height of the Compare to field in pixels.

position
#

Type string

Default 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 string

Default Select:

Text displayed near "Select" dropDown.

width
#

Type number

Default 180

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

Methods

addListener(
  type,
  handler
)

#

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(
  obj,
  type,
  handler
)

#

Returns Removes event listener from the object.

Events

#dataSetCompared

Param {type:"dataSetCompared", dataSet:dataSet}

Dispatched when the data set is selected for comparing.

#dataSetSelected

Param {type:"dataSetSelected", dataSet:dataSet}

Dispatched when the main data set is changed.

#dataSetUncompared

Param {type:"dataSetUncompared", dataSet:dataSet}

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

Adapters

DataSetSelector does not have any adapters.