API/libsapojs/SAPO/Component/Passwordmeter

[Elements] are optional

Class SAPO.Component.Passwordmeter


class SAPO.Component.Passwordmeter

requires SAPO.Dom.Selector

requires SAPO.Dom.Css

Defined in Component/Passwordmeter/1.1/lib.js

Constructor Summary
Passwordmeter (Object options)
Provides a password strength meter

Function Summary
set (string password)
sets the type of meter to be used
setPasswdLevelColor (Number security)
Sets a color meter
setPasswdLevelPoints (Number security)
Sets a points meter
setPasswdLevelSlide (Number security)
Sets a slide meter
setPasswdLevelText (Number security)
Sets a text meter

Constructor Details

constructor Passwordmeter

Passwordmeter(Object options)
Provides a password strength meter
Parameters:
options - Options for the context menu
  • [ string meter ] - meter type: slide, points, text or color
  • [ string elmMeter ] - slide type meter element (must be positioned absolutely in a relative element)
  • [ string elmParentMeter ] - parent item for points type meter
  • [ string classNameMeter ] - class for each point (item) in the points type meter
  • [ string elmText ] - text or color type meter element
  • [ Function textCallBack ] - callback which analizes the text type meter input
  • [ boolean textInColorMeter ] - true if the color meter should show text as well
  • [ Function callBack ] - callback for the points meter
  • [ string passwordId ] - id of the password field for the color meter

Function Details

function set

set(string password)
sets the type of meter to be used
Parameters:
password - password to be evaluated

function setPasswdLevelColor

setPasswdLevelColor(Number security)
Sets a color meter
Parameters:
security - Level of password security

function setPasswdLevelPoints

setPasswdLevelPoints(Number security)
Sets a points meter
Parameters:
security - Level of password security

function setPasswdLevelSlide

setPasswdLevelSlide(Number security)
Sets a slide meter
Parameters:
security - Level of password security

function setPasswdLevelText

setPasswdLevelText(Number security)
Sets a text meter
Parameters:
security - Level of password security