CaAccountPanel
The account panel. Includes content panel frames 'login', 'create', 'reset' and 'change'
SASS-path: ./styles/components/molecules/ca-account-panel.scss
Methods
Method | Description | Parameters |
---|---|---|
setFrame | Set frame for content panel | Content panel frame (String) |
createAccountHandler | Decides what action the create account button should have (different in different frames) | - |
showFeedback | Show feedback | Feedback (Object) |
closePanelAfterDelay | Closes panel after a delay of 1000 ms to let the user see the feedback | - |
login | Log in action | - |
createAccount | Create account action | - |
resetPassword | Reset password action | - |
changePassword | Reset password action | - |
checkValid | Used to hide feedback if field becomes valid after error | - |
enterHandler | Decides what action Enter key should trigger (different for different frames) | - |
resetFields | Reset all fields | - |