Class: PasswordView

settings/js/controls/password-view. PasswordView

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
state boolean

True if the view should be enabled; false otherwise

Source:

updateConfig(config)

Updates the current state of the view

Parameters:
Name Type Description
config PasswordViewConfig

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
Copyright 2013--2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Fri Jun 22nd 14:40 2018 using the DocStrap template.