MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

mmo-reveal

1 symbole · générée le 27 Oct 2026

element

mmo-reveal

mmo-reveal.jhs:1

The eye of a secret field (a password, a token, an API key): placed after the <input type="password"> in its .input box, a click (or Enter, Space) shows what was typed, a second one hides it again.

<mmo-reveal></mmo-reveal>
Étend
CustomShadowElement
Hidden at first, and hidden again when the form is submitted, so the browser never stores it as text.
<span class="input"><mmo-icon name="lock"></mmo-icon><input type="password" name="password"/><mmo-reveal></mmo-reveal></span>

Index

input readonly accessorThe field it shows: the input before it, else the one of its .input box
revealed readonly accessorWhether the field shows its value
init()
reveal(show)Show or hide the value of the field

Propriétés2

input

readonlyaccessormmo-reveal.jhs:27

The field it shows: the input before it, else the one of its .input box

get input()
Type
?HTMLInputElement

revealed

readonlyaccessormmo-reveal.jhs:37

Whether the field shows its value

get revealed()
Type
boolean

Méthodes2

reveal(show)

mmo-reveal.jhs:45

Show or hide the value of the field

reveal(show = true)
show = trueboolean- true shows it, false hides it