Password Element Element
Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Plugins | Mobile | Troubleshooting | About
Table of Contents
1 Password Element - #password {}
The password element produces an HTML masked password entry box.
Usage
#password { id=password1 }
Attributes
- disabled - (boolean)
- Set to true to disable this element in the
browser (sets the HTML
disabled
property, effectly greying out the element). Can be dynamically re-enabled withwf:enable(ElementID)
orwf:wire(ElementID, #enable{})
(Default:false
) - readonly - (boolean)
- Set to true to make this element readonly in the
browser. Can be toggled with
wf:wire(ElementID, #make_writable{})
andwf:wire(ElementID, #make_readonly{})
. - next - (atom)
-
If set with a valid control ID, pressing the enter key in the password box will automatically move focus to the specified control.
- postback - (Erlang term)
-
If set, pressing the enter key in the password box will automatically initiate a Nitrogen postback with the supplied term.
- html_name - (string)
- The name attribute of the password element.