Extends
- Controller
Methods
connect()
Subscribe to the store.
disconnect()
Unsubscribe from the store
fetchDataVizData()
Fetch all of the data for the selected month. If the data for the month is already present then it does not fetch again.
monthClicked()
Ignores month if already clicked. Set the month clicked as selected in the store and gives the class selected to the clicked month.
reconnect()
Handles a repeated Turbo visit to the dashboard page.
storeUpdated()
Triggered by the store whenever any store data changes. Fetches the relevant data when a month is selected
yearSelectedValueChanged()
Triggered when a year is set. Uses a document fragment to fully create the months buttons before removing the load button and adding all the new months buttons. The last button is set as selected