Password
This widget helps the users to securely type in the text they want to enter. The string typed on this component is displayed as an asterisk set of characters.
Basic
Default Value
Enter the default string to be displayed when the widget is loaded. This can also be retrieved from the backend using query or loaded using low-code. This string is displayed as password characters on load.
Placeholder
Specifies a hint that describes the expected value. The placeholder shows the hint text in the widget when nothing is selected or entered. This text disappears as soon as a value is entered in the control.
Label
Represents the caption for the widget in the user interface. It is recommended to keep the label string short and convey the usage of the widget in the UI
Tooltip
This tooltip pops up when the user moves the mouse over the label area of the widget. This is commonly used to provide some extra or important information to the user on the usage of the widget.
The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.
Position
Property | Description |
---|---|
| |
|
Alignment
Property | Description |
---|---|
| |
|
Width
Enter a number value to set the width of the widget. It can be set in terms of pixels and percentage.
Interaction
Event Handlers
Event | Description |
---|---|
| |
| |
| |
|
Disabled
Disables the user interaction with the element on the page. It visually indicates that the element is inactive and prevents users from interacting with it when applied. Shows a red-crossed warning symbol and can be customized to disable the widget according to certain conditions using low-code.
Layout
Hide
This sets whether the widget has to be displayed on the screen when the program is loaded. This shows/hides the widget both on desktop and mobile devices.
Widget Tooltip
This tooltip pops up when the user moves the mouse over the input area of the widget. It is commonly used to hint at the type of input the user needs to provide.
The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.
Height
Auto | The height is auto-adjusted for the content |
Fixed | The height of the widget is fixed |
Advanced
Show Visibility Toggle
Displays the eye-icon, upon clicking it, helps the users to view the actual characters they entered.
Read Only
Makes the entire widget disabled, and denies users any action over the element. It is grayed out for users' view to show it is read-only.
Prefix Icon
Choose one from the set of icons that will be displayed as a prefix logo, just before the logo text.
Validation
Required Field
Refers to the field that must be completed by the user, which means the field must be entered with a valid value before submitting the information.
Regex
Regular expression to validate if the entered input string matches the criteria. Regular expressions allow users to check a string of characters like an e-mail address or password for patterns to see if they match the pattern defined by that regular expression and produce actionable information. For example - consider this regex:
?=.*[0-9]
means that the password must contain a single digit from 1 to 9.
(?=.*[a-z])
means that the password must contain one lowercase letter.
(?=.*[A-Z])
means that the password must contain one uppercase letter.
(?=.*\W)
means that the password must contain one special character.
.{8,16}
means that the password must be 8-16 characters long. We must use this at the end of the regex, just before the $ symbol.
Minimum Length
Enter the value for a minimum number of characters to be allowed, for example - 20. This means that the widget must have a minimum length of 20 characters to be entered by the user. The program will automatically validate the user input against the specified constraint. If the user input does not meet this constraint, it will show an error and the user will need to enter a valid value.
Maximum Length
Enter the value for a maximum number of characters in the field, for example - 250. This means that the widget must not exceed the maximum length of 250 characters. The program will automatically validate the user input against the specified constraint. If the user input exceeds the limit, it stops the keyboard entry into the widget.
Custom Rule
Apart from validating the entry using the regex rule, users can also use this property to write low-code and check other aspects. For example - check if the city selected in the previous field matches the desired value, throw a custom message to the user even before capturing the entry on this field.
Style
Property | Description |
---|---|
Label | Set the colour for the label text. Recommended to set in contrast with the background. |
Background | Users can change the colour of the text background using this property. It has all the RGB colour ranges to pick from. It is recommended to use a corresponding background colour that shows the font clearly. |
Text | Set the colour of the text. Recommended to set in contrast with the background. |
Text Size | Set the size of the text in px value - 12px |
Text Weight | Increase or decrease the thickness of the font using the list of numbers from 100-800. |
Font Family | Type the name of the font family. The reference to the list of font families can be found here: MDN web docs |
Font Style | There are 3 types of styles that can be applied: "normal" - The text is shown normally, no style applied. "italic" - The text is cursive. "oblique" - A sloped version of the normal text. |
Text Transform | This property specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized. MDN web docs |
Border Color | Set the colour to the border lines. The border lines will be shown only if that is enabled. |
Margin | This value is set in terms of "px" number which creates the space between the border and the content of the widget. |
Border Radius | This sets the radius of the widget's corners, enabling rounded corners on the widget. This value is defined in "px" terms. |
Border Width | Set the thickness of the border of the widget using this value. It is defined using "px" terms. |
Accent | An accent is a typically bright colour that contrasts with the more utilitarian background and foreground colours within a colour scheme. These are present in the visual style of many platforms (though not all). On the web, an accent is sometimes used in input elements for the active portion of the control, for instance, the background of a checked checkbox. MSDN web docs |
Validation Message | Set the colour of the validation text message. Recommended to set in contrast with the background, usually Red. |
Box Shadow | The is the colour of the shadow that is generated behind the widget box. The X and Y axis values can be altered such that the shadow can be set to fall anywhere behind the widget area. "x-offset" - a positive number specifies the shadow will be on the right of the box, and a negative number will put the shadow on the left of the box. "y-offset" - a negative one means the shadow will be above the box, and a positive number means the shadow will be below the box. "Blur" - if the number is set to 0 then the shadow will be sharp. It will more blurred as the number goes higher, and the shadow will extend further away. "Color" - sets the colour of the shadow. If the colour is not set, the box shadows are drawn in the foreground colour. |
Custom CSS
Users can write a specific style using CSS syntax here and the style text will be applied to the widget when the program is loaded.
Last updated