Skip to main content

Reorderable List

The Reorderable List component allows users to arrange a list of items by dragging and dropping them into a desired order. It's useful for building prioritization interfaces, task ordering, or any workflow where the sequence of items matters.

Each item in the list supports plain text, Markdown, and HTML label formats, giving you flexibility in how items are displayed.

Example Usage

A project manager needs to build a sprint planning board where the team can prioritize backlog items. Using the Reorderable List component, team members can drag tasks up or down to set their priority order. The updated order is captured via the On change event and can be saved back to the database.

Properties

The list items can be configured either statically or dynamically.

To add a Static options click on + Add new option button and then configure the item with a label, value, and format.

To use dynamic options, enable the Dynamic options toggle and provide a schema. The schema accepts an array of objects, each with label, value, and format properties.

Schema Example
[
{ "label": "Card1", "value": "1", "format": "plain" },
{ "label": "Card2", "value": "2", "format": "plain" },
{ "label": "**Bold Card**", "value": "3", "format": "markdown" }
]

Events

EventDescription
On changeTriggers whenever an item is reordered via drag and drop.
info

Check Action Reference docs to get detailed information about all the Actions.

Component Specific Actions (CSA)

The following actions of the component can be controlled using the component-specific actions (CSA). You can trigger these using an event or through a RunJS query.

Action
Description
How To Access
setVisibilitySets the visibility of the component.components.reorderablelist1.setVisibility(false)
setDisableDisables the component.components.reorderablelist1.setDisable(true)
setLoadingSets the loading state of the component.components.reorderablelist1.setLoading(true)

Exposed Variables

Variable
Description
How To Access
optionsHolds the current list of items in their present order, including label, value, and format.{{components.reorderablelist1.options}}
valuesHolds an array of values from the list items in their current order.{{components.reorderablelist1.values}}
isVisibleIndicates if the component is visible.{{components.reorderablelist1.isVisible}}
isDisabledIndicates if the component is disabled.{{components.reorderablelist1.isDisabled}}
isLoadingIndicates if the component is loading.{{components.reorderablelist1.isLoading}}

Additional Actions

Action
Description
Configuration Options
Loading stateEnables a loading spinner, often used with isLoading to indicate progress.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
VisibilityControls component visibility.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
DisableEnables or disables the component.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
TooltipProvides additional information on hover. Set a string value for display.String (e.g., Drag items to reorder.).

Devices

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Styles

Text

Property
Description
Configuration Options
TextSets the text color of the list items.Select the color or click on fx and input code that programmatically returns a Hex color code.
PaddingAdds padding between the component content and its container boundary.Select Default for standard padding or None to remove padding.


Need Help?