PasswordView

web/PasswordView~ PasswordView

This class handles the rendering of and interaction with the password and stats.

Constructor

new PasswordView()

Description:
  • Constructor

Source:

Methods

bindGeneratePassword(handle)

Description:
  • bind the Generate button to the event handler

Source:
Parameters:
Name Type Description
handle function

pass control to the Controller

clearPasswordArea()

Description:
  • Clear the password area

Source:

renderPassword(passAndStats, num)

Description:
  • Render the password and statistics

Source:
Parameters:
Name Type Description
passAndStats Object

object with passwords and stats

num number

number of passwords generated

renderPasswordError(msg)

Description:
  • Show an alert with an error message

Source:
Parameters:
Name Type Description
msg string

the error message