The Year component for Retool Apps
A dropdown menu and input field to select or enter a year.
Year is a preset version of Select. It has been preconfigured with a list of values.
Properties
All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
allowCustomValue
Whether to allow values that do not exist in values
.
Type | boolean |
Format | True/False |
Configurability | Inspector |
Default | false |
Examples
true
allowDeselect
Whether to allow deselection of an item.
Type | boolean |
Format | True/False |
Configurability | Inspector |
Default | false |
Examples
true
clearInputValueOnChange
Whether to clear the input value when the selection changes.
Type | boolean |
Configurability | Inspector |
Default | null |
deprecatedLabels
A list of labels (deprecated).
Type | array |
Array values | string |
Configurability | Read-only |
Default | null |
disabled
Whether input, interaction, selection, or triggering is disabled.
Type | boolean |
Format | True/False |
Configurability | Inspector > Interaction > Disabled |
Default | false |
Examples
true
disabledValues
A list of values not available for selection.
Type | array |
Array values | boolean |
Configurability | Read-only |
Default | null |
emptyMessage
The message to display if no value is set.
Type | string |
Configurability | Inspector > Appearance > Empty state |
Default | null |
events
A list of configured event handlers that trigger actions or queries.
Type | array |
Array values | object |
Configurability | Inspector > Interaction > Event handlers |
Default | null |
Array Object Properties
event
The event that triggers the action. Refer to the events section for details of available events for this object.
Type | string |
Configurability | Inspector > Interaction > Event handlers > Event |
Default | null |
method
The JavaScript method to perform when type
is datasource
, widget
, state
, or localStorage
.
Type | string |
Configurability | Inspector > Interaction > Event handlers > Edit event handler > Run script actions |
Default | null |
type
The type of action to perform.
Type | string | ||||||||||||||
Configurability | Inspector > Interaction > Event handlers > Edit event handler > Action | ||||||||||||||
Allowed Values |
| ||||||||||||||
Default | null |
Examples
query1
button1
inputValue
The default or most recently entered value.
Type | string |
Configurability | Read-only |
Default | null |
isHiddenOnDesktop
Whether to show or hide this object in the desktop layout.
Type | boolean |
Format | True/False |
Configurability | Inspector > Appearance > Advanced > Show on desktop |
Default | false |
Examples
true
isHiddenOnMobile
Whether to show or hide this object in the mobile layout.
Type | boolean |
Format | True/False |
Configurability | Inspector > Appearance > Advanced > Show on mobile |
Default | true |
Examples
true
labelPosition
The position of the label relative to the input field or value.
Type | string | |||||||||
Format | Plain Text | |||||||||
Configurability | Inspector > Content > Add-ons > Label > Position | |||||||||
Allowed Values |
| |||||||||
Default | left |
Examples
top
loading
Whether to display a loading indicator.
Type | boolean |
Format | True/False |
Configurability | Inspector > Interaction > Loading |
Default | false |
Examples
true