onFloorChanged
Type: function(floor | undefined)
Fired when the user moves to a different floor on a multi-floor chart. This is either when:
- the user clicks on one of the buttons on the floor picker component
- the chart is rendered with the activeFloor parameter.
If the user switches to the floors overview, undefined
is passed in as floor.
The floor
object looks like:
{
"name": "1",
"categories": [
{ "key": 1, "label": "Category 1", "color": "#aaaaaa"},
{ "key": 2, "label": "Category 2", "color": "#bbbbbb", "accessible": true}
]
}
name
is the name of the floor, as it's shown on the floor picker.categories
are the categories for the objects on the current floor.