Perspective - Password Field
Component Palette Icon:
Description​
The Password Field component is similar to a Text Field component. It allows users to enter their password text. When the Password field is empty, you can create a placeholder that informs user to "Login". You can also enable the "allowReveal" property to allow users to view their password entry.
Properties​
Most Properties have binding options. For more information on Bindings, see Types of Bindings in Perspective. This section only documents the Props Category of properties. The other Categories are described on the Perspective Component Properties page.
Name | Description | Property Type |
---|---|---|
text | Password text. | value: string |
placeholder | Text displayed when password text is empty. | value: string |
enabled | Whether the user can alter the password text. Default is true. Note: If the component is disabled, scripts can still run on the component. For example, if you add a script action to a System Event, such as an onStartup event, the script will fire when the page is loaded. Events that require user interaction, such as onClick events, will not fire with the exception of Pointer Events. | value: boolean |
allowReveal | Whether the user can temporarily remove the password mask, revealing the password. | value: boolean |
style | Sets a style for this component. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class. | object |
Component Events​
The Perspective Event Types Reference page describes all the possible component event types for Perspective components. Not all component events support each Perspective component. The Component Events and Actions page shows how to configure events and actions on a Perspective component. Component scripting is handled separately and can be accessed from the Component menubar or by right clicking on the component.
Example​
Property | Value |
---|---|
props.placeholder | Enter Password |
props.borderStyle | solid |
props.borderColor | #D90000 |
props.borderWidth | 3px |
props.fontSize | 14px |
propsfontWeight | bold |