Password Unmask functionality.
- Source:
- Since:
- 3.2
- Copyright:
- 2016 Andrew Nicols
- 2016 Andrew Nicols
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Classes
Methods
(inner) addListeners() → {PasswordUnmask}
Add the event listeners required for PasswordUnmask.
Returns:
- Type
- PasswordUnmask
(inner) checkFocusOut(e)
Check whether focus was lost from the PasswordUnmask and turn editing off if required.
Parameters:
Name | Type | Description |
---|---|---|
e |
EventFacade | The EventFacade generating the suspsected Focus Out |
(inner) getDisplayValue() → {String}
Get the currently value.
Returns:
- Type
- String
(inner) isEditing() → {Boolean}
Whether the user is currently editing the field.
Returns:
True if edit mode is enabled
- Type
- Boolean
(inner) passwordVisible() → {Boolean}
Whether the password is currently visible (unmasked).
Returns:
True if the password is unmasked
- Type
- Boolean
(inner) setDisplayValue() → {PasswordUnmask}
Set the currently value in the display, taking into account the current settings.
Returns:
- Type
- PasswordUnmask
(inner) turnEditingOff(focusOnEditLink) → {PasswordUnmask}
Disable the editing functionality, optionally focusing on the edit link.
Parameters:
Name | Type | Description |
---|---|---|
focusOnEditLink |
Boolean | Whether to focus on the edit link after disabling the editor |
Returns:
- Type
- PasswordUnmask
(inner) turnEditingOn() → {PasswordUnmask}
Enable the editing functionality.
Returns:
- Type
- PasswordUnmask