mmo-password
1 symbole · générée le 27 Oct 2026
mmo-password
mmo-password.jhs:1Password element to display a password input and a confirm password input, each with its eye (<mmo-reveal>), and a button that generates one (a real <button>: Tab reaches it, Enter or Space presses it).
- Étend
- CustomElement
Index
| pattern | the pattern of the password | |
| required | if true, the password is required | |
| value | the new password, once typed and confirmed (empty otherwise) | |
| ViewDefault static readonly accessor | ||
| pattern accessor | Get the pattern of the password | |
| value accessor | Get the value of the password | |
| required accessor | Get the required of the password | |
| init() | ||
| showPassword(value) | Show the password, in both fields | |
| 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 |
Attributs3
pattern
mmo-password.jhsthe pattern of the password
pattern
required
mmo-password.jhsif true, the password is required
required
value
mmo-password.jhsthe new password, once typed and confirmed (empty otherwise)
value
Propriétés4
ViewDefault
staticreadonlyaccessormmo-password.jhs:35pattern
accessormmo-password.jhs:51Get the pattern of the password
- Type
string
value
accessormmo-password.jhs:71Get the value of the password
- Type
string
required
accessormmo-password.jhs:92Get the required of the password
- Type
boolean
Méthodes4
init()
mmo-password.jhs:39showPassword(value)
mmo-password.jhs:122Show the password, in both fields
| value = null | ?boolean | - true shows it, false hides it, null toggles |
generatePassword()
mmo-password.jhs:131Generate a random password then set it in the password and confirm password inputs
updatePassword()
mmo-password.jhs:146Update the password Check if the password is valid and if the confirm password is the same as the password