The Event List web component
A content area to display a list of events.
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.
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 |
groupBy
The grouping option when isGrouped
is true
.
Type | string | ||||||
Configurability | Read-only | ||||||
Allowed Values |
| ||||||
Default | null |
id
The unique identifier (name).
Type | string |
Format | Plain Text |
Configurability | Inspector |
Default | eventList1 |
Examples
query1
button1
items
The items in the Event List.
Type | array |
Format | Plain Text |
Array values | string |
Configurability | Inspector > Content > Items |
Default | null |
pending
The label to display for pending items when isGrouped
is false
.
Type | string |
Configurability | Read-only |
Default | null |
sortedDesc
Whether to sort items in descending order when isGrouped
is true
.
Type | boolean |
Configurability | Read-only |
Default | null |
timestamps
A list of timestamps for each item when isGrouped
is true
.
Type | array |
Array values | string |
Configurability | Read-only |
Default | null |
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
eventList.scrollIntoView()
Scrolls the canvas or parent container so that the selected component appears in the visible area.
eventList.scrollIntoView(options)
Parameters
Object Properties
behavior
The scroll behavior.
Type | string | ||||||
Allowed Values |
|
block
The scroll position relative to the component.
Type | string | ||||||||||
Allowed Values |
|
Examples
Scroll the minimum amount to immediately bring eventList
into view.
eventList.scrollIntoView({behavior: 'auto', block: 'nearest'});
eventList.setHidden()
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
eventList.setHidden(hidden)
Parameters
Examples
true
Examples
Hide eventList
.
eventList.setHidden(true);
Unhide eventList
.
eventList.setHidden(false);
Events
Events triggered by user interactions. You can configure event handlers in the IDE to trigger queries or other actions in response to events.
Event | Description |
---|---|
Click | An item is clicked or pressed. |