Oskari API Documentation

Select event

admindown-arrow
cataloguedown-arrow
frameworkdown-arrow
mappingdown-arrow
statisticsdown-arrow
uidown-arrow

StatsGrid.ActiveIndicatorChangedEvent

Notifies when an indicator has been selected (in grid etc). Components handling indicators should update a "highlighted" indicator where needed.

Parameters

(* means the parameter is required)

Name Type Description Default value
current Object object describing the current active indicator undefined
previous Object object describing the previus active indicator undefined

Both current and previous have the same type object as value:

{
    datasource : <datasource id as number>,
    indicator : <indicator id as number>,
    selections : <object with key-value pairs of the selection>,
    hash : <an internal identifier that presents the above as a string>
}

Event methods

getName()

Returns event name

getCurrent()

Returns id for the regionset where the region can be found. Note! This might be undefined for example when the last selected indicator was removed.

getPrevious()

Returns id for the region that was selected. Note! This might be undefined for example this is the first indicator added.