The Comment Thread component for Retool Apps
An interface to display and enter comments.
For more information about using this component, refer to the Comment Thread guide.
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.
autoRefreshInterval
The frequency, in seconds, at which to reload data.
| Type | number |
| Configurability | Inspector |
| Default | null |
avatarFallback
The text that is displayed when there is no Image URL or icon.
| Type | string |
| Format | Plain Text |
| Configurability | Inspector |
| Default | null |
Examples
false"Jenny Appleseed"
avatarIcon
The icon that's displayed for the avatar.
| Type | string |
| Format | Icon Key |
| Configurability | Inspector |
| Default | null |
Examples
false"/icon:bold/user"
avatarSrc
The image URL to use for the avatar.
| Type | string |
| Format | URL |
| Configurability | Inspector |
| Default | null |
Examples
false"https://example.com/image.jpg"
data
The data.
| Type | string | number | boolean | object | array |
| Format | Custom data |
| Configurability | Inspector |
| Default | null |
emptyDescription
The description to display before the first message is sent.
| Type | string |
| Configurability | Inspector |
| Default | null |
emptyTitle
The title to display before the first message is sent.
| Type | string |
| Configurability | Inspector |
| 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 |
hidden
Whether this object is hidden from view.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Appearance > Hidden |
| Default | false |
Examples
falsetrue
id
The unique identifier (name).
| Type | string |
| Format | Plain Text |
| Configurability | Inspector |
| Default | commentThread1 |
Examples
falsequery1
falsebutton1
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
falsetrue
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
falsetrue
maintainSpaceWhenHidden
Whether to take up space on the canvas if hidden is true.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Appearance > Advanced > Maintain space when hidden |
| Default | false |
Examples
falsetrue
margin
The amount of margin to render outside.
| Type | string | |||||||||
| Format | Plain Text | |||||||||
| Configurability | Inspector > Spacing > Margin | |||||||||
| Allowed Values |
| |||||||||
| Default | 4px 8px |
Examples
false4px 8px
placeholder
The text to display within the input field when there is no value.
| Type | string |
| Format | string |
| Configurability | Inspector > Content > Placeholder |
| Default | Enter a value |
Examples
falseEnter a value
showEmptyState
Whether to display an empty state before a message is sent. Enabled by adding the Empty state add-on.
| Type | boolean |
| Configurability | Inspector |
| Default | null |
showInEditor
Whether the component remains visible in the editor if hidden is true.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Appearance > Advanced > Always show in edit mode |
| Default | false |
Examples
falsetrue
showTimestamp
Whether to display a timestamp for messages.
| Type | array |
| Array values | boolean |
| Configurability | Inspector |
| Default | null |