Skip to main content

Empty

Rocket 2.0

The Empty component shows an icon, a title and a short message for a place with nothing to show yet, such as a search with no results or a list with no records. It can also show a button that starts the next step.

Properties​

Property
Description
Expected Value
TitleThe main message, for example No orders yet.Text. Default: No results
DescriptionA second line under the title that explains what to do next.Text
IconIcon shown above the title.Text. Default: inbox
Action labelText on the button under the message. Leave it empty to hide the button.Text
Loading lookWhat the component shows while it is loading: a spinner or a skeleton placeholder.Spinner, Skeleton. Default: Spinner

Additional Actions​

Each of these can be switched on or off, or set with a logical expression by clicking fx.

Property
Description
Expected Value
VisibilityShows or hides the component. Hidden components keep their space unless Collapse when hidden is on.On or off. Default: On
Collapse when hiddenRemoves the hidden component's space, so the components below it move up.On or off. Default: Off
Loading stateShows the component's loading look and blocks interaction, for example while a query runs.On or off. Default: Off
DisableStops the user from interacting with the component.On or off. Default: Off

Devices​

Property
Description
Expected Value
Show on desktopShows the component in the desktop layout.On or off. Default: On
Show on mobileShows the component in the mobile layout.On or off. Default: Off

Events​

Add a handler from the Events section of the properties panel. See Event Triggers for the steps.

Event
Description
On action clickedTriggers when the user clicks the action button.

Component Specific Actions (CSA)​

Run these from an event handler with Control Component, or from a RunJS query. See Component Specific Actions.

Action
Description
How To Access
Set visibilityShows the component when true, hides it when false.components.empty1.setVisibility(false)
Set disableDisables the component when true, enables it when false.components.empty1.setDisable(false)
Set loadingTurns the loading state on with true, off with false.components.empty1.setLoading(false)

Exposed Variables​

Variable
Description
How To Access
titleThe main message, for example No orders yet.{{components.empty1.title}}
descriptionA second line under the title that explains what to do next.{{components.empty1.description}}
iconIcon shown above the title.{{components.empty1.icon}}
actionLabelText on the button under the message. Leave it empty to hide the button.{{components.empty1.actionLabel}}
loadingIndicatorWhat the component shows while it is loading: a spinner or a skeleton placeholder.{{components.empty1.loadingIndicator}}
isVisibleWhether the component is visible.{{components.empty1.isVisible}}
isLoadingWhether the component is in its loading state.{{components.empty1.isLoading}}
isDisabledWhether the component is disabled.{{components.empty1.isDisabled}}

Styles​

Style
Default
Backgroundtransparent
Dashed border colorTheme: Default border
Radius—
Icon backgroundTheme: Surface 3
Icon colorTheme: Placeholder text
Title colorTheme: Primary text
Description colorTheme: Placeholder text
Box shadow0px 0px 0px 0px #00000040

A default that starts with Theme: follows the app's theme until the style is set to another value. See App Themes.