Constructor
new PasswordField(valueopt)
PasswordField constructor. Creates an instance of PasswordField UI component.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value | string | <optional> | Text value. |
Classes
Methods
character(characteropt) → {PasswordField|string}
Sets/Gets a Unicode character to use for masking real characters.
Some disk characters to try: const myChar = '\u00B7'; const myChar = '\u2022'; const myChar = '\u25CF'; const myChar = '\u2B24';
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
character | string | <optional> | A one character string character. If the string has more than one character, only first one will be used. |
Returns:
Returns an instance of this object when setting a value, otherwise current value is returned.
- Type:
- PasswordField |
string