Extends
- Controller
Methods
connect()
Subscribe to the store. Setup dataVizData and then fetch years and months data
disconnect()
Unsubscribe from the store
reconnect()
Handles a repeated Turbo visit to the dashboard page.
statusValueChanged()
Triggered when the years and months data is loaded. Uses a document fragment to fully create the years buttons before removing the load button and adding all the new years buttons. The last button is set as selected
storeUpdated()
Triggered by the store whenever any store data changes. Sets us the store when yearsAndMonths data has been set following the fetch statement
yearClicked()
Ignores year if already clicked. Set the months data for the selected year. Set the last month as selected in the store and gives the class selected to the clicked year.
yearsAndMonths()
Fetch the data for years and months.