Comment Thread
A widget to facilitate conversations among app users. It supports timestamps, customizable avatars, submit handler and invocation via API.
Properties
Available properties for Comment Thread with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
The current value of the input
Automatically refresh the comment thread at this interval (milliseconds). 0 for no automatic refresh.
The fallback text to display if there is no image or icon
The avatar icon to display
The size of the avatar image, in pixels
The avatar source URL
The data for the comment thread
Disables comment thread input and submit button.
The description to display when there are no messages in the comment thread
The title to display when there are no messages in the comment thread
Whether the component is visible.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
What to show when the input is blank
Whether to display the avatar
Whether to display text when there are no messages in the comment thread
Whether the component remains visible in the editor if hidden
is true
.
Whether to display a timestamp
Whether to display the title
The ID of the comment thread
The title of the comment thread
Events
Events are triggered by user interactions with Comment Thread. Use event handling to trigger queries or other actions in response to events.
A user submits a comment
A user clicks an action button on a comment
Methods
Methods for interacting with Comment Thread. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
Set the current value.
Clear the current value.
Scrolls the canvas or parent container so that the selected component appears in the visible area.
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
Reset value
to the default value.
Export comments in the current thread as a file in a CSV, TSV, JSON, or Excel format.
Submit a comment to the thread.