Input Component Properties
These properties affect input components.
For a guide to using input components, see Designing Input Components.
Input components are also affected by Common Properties.
Shared Input Properties
These properties affect any of the following components:
- Text Input
- Text Area
- Password Input
- Date Input
- Color Input
- Number Input
- Range Input
Is Valid
Is Valid
Is Valid
Returns whether this component’s current contents are valid. Validity is determined by the component type, and by properties like Minimum, Maximum, and Input Type.
Validity is checked whenever data is committed. Therefore, if Live Update is enabled, validity is checked constantly. If Live Update is disabled, validity is checked when the focus leaves the component.
Live Update
Live Update
Live Update
Specifies when the user’s changes to this component are committed. This property affects changes made in Preview Mode, the Viewer, and the deployed application. It does not affect changes that you make within the Property Inspector.
TRUE
Changes are committed constantly, as the user makes them.
FALSE
Changes are committed only when focus leaves the component.
Left Padding
Left Padding
Left Padding
Defines a number of pixels of space between the left container boundary and the leftmost edge of the content. Negative numbers are not allowed.
Paddings are part of an object's width and height. See Borders, Padding, and Content Size.
Right Padding
Right Padding
Right Padding
Defines a number of pixels of space between the right container boundary and the rightmost edge of the content. Negative numbers are not allowed.
Paddings are part of an object's width and height. See Borders, Padding, and Content Size.
Top Padding
Top Padding
Top Padding
Defines a number of pixels of space between the top container boundary and the topmost edge of the content. Negative numbers are not allowed.
Paddings are part of an object's width and height. See Borders, Padding, and Content Size.
Bottom Padding
Bottom Padding
Bottom Padding
Defines a number of pixels of space between the bottom container boundary and the bottommost edge of the content. Negative numbers are not allowed.
Paddings are part of an object's width and height. See Borders, Padding, and Content Size.
Link Paddings
Link Paddings
Text Direction
Text Direction
Text Direction
This property is not shown for the color input component.
Specifies the direction for text and input in this component, to support the use of right-to-left languages.
Left to right
The text or user input direction is left to right.
Right to left
The text or user input direction is right to left.
Auto
The direction of user input is automatically detected as the user enters text.
These properties affect any of the following components:
- Text Input
- Text Area
- Password Input
- Date Input
- Number Input
Font
Font
Font
Specifies the font for this element.
To add a new font to your project and use it for this property, see How do I add a new font to my project?
Font Size
Font Size
Underline
Underline
Horizontal Alignment
Horizontal Alignment
The Placeholder property affects any of the following components:
- Text Input
- Text Area
- Password Input
- Number Input
- List Input
Placeholder
Placeholder
Text Input and Text Area Properties
These properties affect a text input component or a text area component. These components are also affected by shared input properties.
Input Type
Input Type
Input Type
For a text input component, specifies the valid input type, or the expected input type.
Text
A single line of text. Line breaks are automatically removed.
Email
A single, properly formatted e-mail address, or the empty string.
URL
A single, valid, absolute URL, or the empty string.
Tel
A single line of text. Line breaks are automatically removed. On mobile devices, the on-screen keyboard is optimized for number entry.
Search
A single line of text, displayed as a search field. Line breaks are automatically removed.
Scrollbar Styles
Scrollbar Styles
Scrollbar Styles
For a text area component only. In the Advanced part of the Input section, defines the style of the scrollbars that appear when the text doesn't fit in the component.
Date Input Properties
These properties affect a date input component. This component is also affected by shared input properties.
Input Type
Input Type
Arrow Color
Arrow Color
Arrow Color
Defines the color of the drop-down arrow of the date input component.
Arrow Opacity
Arrow Opacity
Arrow Opacity
Defines the opacity of the drop-down arrow, from 0 to 100. The default is 100.
Arrow Image
Arrow Image
Arrow Image
Specifies a custom image for the drop-down arrow. If you don't specify an image, the default arrow is used.
Color Input Properties
These properties affect a color input component. This component is also affected by shared input properties.
Open
Open
Datalist
Datalist
Datalist
Specifies the predefined colors in this color input component. Predefined colors are not supported in all browsers. Regardless of whether the predefined list is supported, the user can still enter a custom value.
Click on color in the Property Inspector to edit it.
Colors are displayed in order in this color input component, with the top color appearing first.
Number Input Properties
These properties affect a number input component. This component is also affected by shared input properties.
Min
Min
Max
Max
Step
Step
Step
Defines the interval between valid numbers for this input component. Valid numbers are the minimum and multiples of the Step value larger than the minimum. If no minimum is defined, valid numbers are zero and multiples of the Step value larger or smaller than zero. A Step value of zero means that any interval is allowed.
Always Show Spinner
Always Show Spinner
Always Show Spinner
By default, the spinner (up/down arrows) appears only when the user mouses over the component. To always display the spinner, set this property to TRUE.
Step Snapping
Step Snapping
Step Snapping
If TRUE, a number that the user enters is rounded to the nearest multiple of Step. Rounding happens when the user presses Enter or the component loses focus. The default is FALSE.
Range Input Properties
These properties affect a range input component. This component is also affected by shared input properties.
Min
Min
Max
Max
Step
Step
Step
Defines the interval between valid numbers for this input component. Valid numbers are the minimum and multiples of the Step value larger than the minimum. If no minimum is defined, valid numbers are zero and multiples of the Step value larger or smaller than zero. A Step value of zero means that any interval is allowed.
Ticks
Ticks
Always Show Spinner
Always Show Spinner
Always Show Spinner and Step Snapping
Also shown for the range input component. See Number Input Properties.
File Input Properties
These properties affect the file input component.
File Content
File Content
Files
Files
Mode
Mode
Selection Type
Selection Type
Accept
Accept
Accept
Specifies the file formats that are accepted by this file chooser.
Enter one or more of the following values separated by commas:
- .png, .jpg, .gif, etc.: Files of the format specified.
- audio/*: All sound files.
- video/*: All video files.
- image/*: All image files.
- media_type/*: Replace media_type with any valid media type, to accept all formats within that type. Look at IANA Media Types for a complete list of standard media types.
Open
Open
Open
A trigger that opens the browser file chooser. For information about using triggers, see Binding from an Event Property to a Trigger Property.
List Input Properties
These properties affect a list input component.
Selected Index
Selected Index
Options
Options
In the List Element section, the selected element font properties are labeled Font and Size (with the italic, bold, and underline toggles). The options font properties are under Option Font Styles in the Advanced part of the section.
Selected Element Font
Selected Element Font
Selected Element Font
Defines the font for the selected option.
To add a new font to your project and use it for this property, see How do I add a new font to my project?
Selected Element Font Color
Selected Element Font Color
Selected Element Font Size
Selected Element Font Size
Selected Element Font Italic
Selected Element Font Italic
Selected Element Font Bold
Selected Element Font Bold
Selected Element Font Underline
Selected Element Font Underline
Placeholder
Placeholder
Placeholder
Defines the text that appears when no option is selected. The color picker next to the Placeholder field sets the color of the placeholder text.
Paddings
Paddings
Paddings
Left, right, top, and bottom paddings in pixels, and the Link Paddings toggle. These work the same way as the shared padding properties.
Text Direction
Text Direction
Text Direction
In the Advanced part of the section. Specifies the direction of the text: Auto, Left to Right, or Right to Left.
Options Font
Options Font
Options Font
Defines the font for the options list. Not supported in all browsers. To add a font to this project and use it for this property, see How do I add a new font to my project?
Options Font Color
Options Font Color
Options Font Size
Options Font Size
Options Font Italic
Options Font Italic
Options Font Bold
Options Font Bold
Options Font Underline
Options Font Underline
Options Background
Options Background
Show Arrow
Show Arrow
Arrow Image
Arrow Image
DG Time Input Properties
These properties affect the DG Time Input component. They appear in the Time Input section of the Property Inspector. All time values are in milliseconds since midnight.
Value
Value
Value
Sets or returns the selected time, as a number of milliseconds since midnight. For example, 1:30 PM is 48600000.
Min
Min
Min
Defines the earliest valid time, in milliseconds. If the user enters an earlier time, the value is set to Min.
Max
Max
Max
Defines the latest valid time, in milliseconds. If the user enters a later time, the value is set to Max. The value can never exceed 24 hours (86400000).
Step
Step
Step
Defines the step, in milliseconds, used when the user changes the time with the arrow keys or stepper buttons. The step is split across the fields: for example, a Step of 900000 (15 minutes) makes the minutes field change by 15. The default is 1.
Format
Format
Format
Specifies which fields are displayed. The default is HH:mm:ss.S.
- HH: hours, 0-23
- hh: hours, 12-hour clock
- mm: minutes
- ss: seconds
- S: milliseconds
- a: AM/PM selector
Examples: hh:mm a, HH:mm, HH:mm:ss.S.
Show Clear Button
Show Clear Button
Show Clear Button
Shows or hides a button that clears the value. The default is FALSE.
Show Stepper Buttons
Show Stepper Buttons
Show Stepper Buttons
Shows or hides up/down buttons that change the focused field by the step. The default is FALSE.
Focus Color
Focus Color
Focus Color
Defines the text color of the field that has focus.
Focus Background Color
Focus Background Color
Focus Background Color
Defines the background color of the field that has focus.
Font
Font
Font, Font Color, Size, Italic, Bold, Underline, Letter Spacing
Define the text style of the time fields.
Advanced Properties
Advanced Properties
These properties are available in the Advanced panel:
- daypartOptionBackground: background of the AM/PM drop-down list.
- daypartOptionColor: text color of the AM/PM drop-down list.
- intervalEnd: if TRUE and the format uses a 12-hour clock, 12:00 AM with all fields at zero means the end of the day (24:00) instead of the start of the day. Use this when the component selects the end of a time range.
- onChange: fires when the value changes.
- onModified: fires when a field loses focus after it was changed.
- onGainFocus / onLoseFocus: fire when the component gains or loses focus.
- onAmPmChange: fires when the AM/PM selector changes.




























































