import LoginPresenter from 'PedalPatrol/src/components/presenters/login-presenter.js'LoginPresenter
Extends:
Class for the Login presenter and view
Constructor Summary
| Public Constructor | ||
| public |
constructor(view: Object) Creates an instance of LoginPresenter |
|
Member Summary
| Public Members | ||
| public |
checkInput(username: Object, password: Object): * Called after user click the login button, before presenter sending data to the login model Check if the input is valid |
|
| public |
Gets the data from the model and returns it to the caller. |
|
| public |
onDestroy: * If the view or presenter is destroyed, unsubscribe the presenter from the model. |
|
| public |
Called when the model finished checking with username and password. |
|
| public |
Updates the login model with new data. |
|
| public |
updateF: * |
|
| public |
updateT: * |
|
| public |
view: * |
|
Public Constructors
Public Members
public checkInput(username: Object, password: Object): * source
Called after user click the login button, before presenter sending data to the login model Check if the input is valid
public onDestroy: * source
If the view or presenter is destroyed, unsubscribe the presenter from the model.
public onUpdated(message: Object): * source
Called when the model finished checking with username and password. Refreshes the state of the view.
Reference
Source
