Skip to main content

Popover Menu

The Popover Menu is a UI component that lets you show a contextual menu or extra options when a user clicks or hovers on the button. Unlike a regular menu, the popover menu appears as a floating panel that’s anchored to the trigger element.

Why use it?

  • To provide a compact set of actions tied to a button, icon, or card.
  • To display contextual options related to a selected record, row, or item.
  • Improves user experience with a lightweight, floating menu instead of cluttered buttons.
PropertyValueDescription
Button labelStringThe text displayed on the menu trigger button.
Button typePrimary / OutlineDefines the visual style of the trigger button.
Show menuOn hover / On clickControls how the menu opens.

Options

Allows you to add options to the Popover Menu component field. You can click on + Add new option and add options manually or enable Dynamic options and enter the options using code.

Example Code for Dynamic Options

    {{
[
{
"label":"option1",
"description":"",
"value":"1",
"icon":"IconBolt",
"iconVisibility":true,
"disable":false,
"visible":true
},
{
"label":"option2",
"description":"",
"value":"2",
"icon":"IconBulb",
"iconVisibility":false,
"disable":true,
"visible":true
},
{
"label":"option3",
"description":"This is an option",
"value":"3",
"icon":"IconTag",
"iconVisibility":false,
"disable":false,
"visible":true
}
]
}}

Options Loading State allows you to add a loading state to the dynamically generated options. You can enable or disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Events

Event
Description
On selectTriggers whenever an option is selected.
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 it using an event or use a RunJS query.

Action
DescriptionRunJS Query
setVisibility( )Sets the visibility of the component.components.popovermenu1.setVisibility()
setLoading( )Sets the loading state of the component.components.popovermenu1.setLoading()
setDisable( )Disables the component.components.popovermenu1.setDisable()

Exposed Variables

Variable
Description
How To Access
labelHolds the label name of the component.{{components.popovermenu1.label}}
optionsHolds all the option values of the component in array form.{{components.popovermenu1.options}}
lastClickedOptionHolds the value of the last clicked option.{{components.popovermenu1.lastClickedOption}}
isLoadingIndicates if the component is loading.{{components.popovermenu1.isLoading}}
isVisibleIndicates if the component is visible.{{components.popovermenu1.isVisible}}
isDisabledIndicates if the component is disabled.{{components.popovermenu1.isDisabled}}

Additional Actions

Action
Description
Configuration Options
Loading stateEnables a loading spinner, often used with isLoading to indicate progress. Toggle or set dynamically.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
VisibilityControls component visibility. Toggle or set dynamically.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
DisableEnables or disables the component. Toggle or set dynamically.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., Select an option. ).

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

PropertyDescriptionConfiguration Options
BackgroundSets the background color of the popover menu.Color picker / HEX / RGBA / Custom Themes
TextDefines the text color of labels inside the menu.Color picker / HEX / RGBA / Custom Themes
BorderCustomizes the border color of the menu container.Color picker / HEX / RGBA / Custom Themes
LoaderSets the color of the loader.Color picker / HEX / RGBA / Custom Themes
IconAllows you to select an icon for the trigger button.Select icon, enable/disable icon visibility
Icon colorAdjusts the icon color and its alignment (left or right).Color picker / Alignment options
Border RadiusRounds the corners of the menu container.Pixel values / Predefined radius options
Box shadowAdds shadow effects to the menu for depth.Color picker / HEX / RGBA / Custom Themes

Options

PropertyDescriptionConfiguration Options
LabelSets the color for the display text for the menu option.Color picker / HEX / RGBA / Custom Themes
Icon colorSets the color of the option’s icon.Color picker / HEX / RGBA / Custom Themes
DescriptionSets the color for the optional helper text shown under the main label.Color picker / HEX / RGBA / Custom Themes