import BikePresenter from 'PedalPatrol/src/components/presenters/bike-presenter.js'BikePresenter
Extends:
Class for the Bike presenter and view
Constructor Summary
| Public Constructor | ||
| public |
constructor(view: Object) Creates an instance of BikePresenter |
|
Member Summary
| Public Members | ||
| public |
forceRefresh: * Forces a refresh of the view by fetching the data again. |
|
| public |
Gets the data from the model and returns it to the caller. |
|
| public |
Get the number of notifications from the Alerts model. |
|
| public |
getProfileImage(callback: Function): * Gets the profile image from the ProfileModel. |
|
| public |
Handle the search cancel. |
|
| public |
Handle the search clear |
|
| public |
handleSearchFilter(text: string): * Filter the items in the list based on the text passed in. |
|
| public |
onDestroy: * If the view or presenter is destroyed, unsubscribe the presenter from the model. |
|
| public |
Called when the model is updated with new data. |
|
| public |
Updates the bike model with new data. |
|
| public |
view: * |
|
Public Constructors
Public Members
public getNotificationCount: Number: * source
Get the number of notifications from the Alerts model.
public handleSearchFilter(text: string): * source
Filter the items in the list based on the text passed in. Called every time a letter is typed.
public onDestroy: * source
If the view or presenter is destroyed, unsubscribe the presenter from the model.
public onUpdated(newData: Object): * source
Called when the model is updated with new data. Refreshes the state of the view. Method is supplied with the data to add. Better way to refresh the state?
Reference
Source
