new PasswordView(options)
Utility control for widgets which require passwords
Parameters:
| Name | Type | Description |
|---|---|---|
options |
PasswordViewOptions | Options for the view |
- Source:
Extends
- Backbone.View
Members
-
className
-
Class applied to the view. Override if using Bootstrap 3
- Default Value:
-
- control-group
- Source:
Methods
-
getConfig() → {PasswordViewConfig}
-
Return the current state of the view
- Source:
Returns:
The current state of the view
- Type
- PasswordViewConfig
-
handleInputChange()
-
Handler called when an input changes. Removes validation formatting and error messages
- Source:
-
render()
-
Renders the view
- Source:
-
setEnabled(state)
-
Enables or disables the view
Parameters:
Name Type Description stateboolean True if the view should be enabled; false otherwise
- Source:
-
updateConfig(config)
-
Updates the current state of the view
Parameters:
Name Type Description configPasswordViewConfig The new config
- Source:
-
validateInputs() → {boolean}
-
Validates the inputs and displays error formatting if invalid
- Source:
Returns:
True if the view is enabled, redacted, or the password is not empty; false otherwise
- Type
- boolean