Index

mmo-password

1 symbol · generated 5 Oct 2026

element

mmo-password

mmo-password.jhs:1

Password element to display a password input and a confirm password input

<mmo-password pattern required value></mmo-password>
Extends
CustomElement

Index

patternthe pattern of the password
requiredif true, the password is required
valuethe value of the password
ViewDefault static readonly accessor
pattern accessorGet the pattern of the password
value accessorGet the value of the password
required accessorGet the required of the password
init()
showPassword(value)Show the password
generatePassword()Generate a random password then set it in the password and confirm password inputs
updatePassword()Update the password Check if the password is valid and if the confirm password is the same as the password

Attributes3

Properties4

pattern

accessormmo-password.jhs:43

Get the pattern of the password

get pattern() set pattern(value)
Type
string

value

accessormmo-password.jhs:63

Get the value of the password

get value() set value(value)
Type
string

required

accessormmo-password.jhs:79

Get the required of the password

get required() set required(value)
Type
boolean

Methods4

showPassword(value)

mmo-password.jhs:109

Show the password

showPassword(value = null)
value = nullboolean- The value to show the password

generatePassword()

mmo-password.jhs:128

Generate a random password then set it in the password and confirm password inputs

generatePassword()

updatePassword()

mmo-password.jhs:143

Update the password Check if the password is valid and if the confirm password is the same as the password

updatePassword()