PasswordField

Password field is used to type masked text. Use character() method to set a custom mask character. All other methods are inherited from UIComponent.

Constructor

new PasswordField(valueopt)

PasswordField constructor. Creates an instance of PasswordField UI component.

Parameters:
NameTypeAttributesDescription
valuestring<optional>

Text value.

Classes

PasswordField

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:
NameTypeAttributesDescription
characterstring<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