(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Overflow menu

The Dynamic Overflow Menu Component is a versatile UI element that provides a compact dropdown menu, typically represented by an icon button. When clicked, it displays a list of selectable options. This component is ideal for implementing contextual actions, secondary features, or additional options without cluttering the interface. The overflow menu can be configured with different icons, placement options, and menu items to suit various application needs.

Properties

Visual Properties

Event Actions

General

Authorization

Visibility

Testing Hooks

Menu Option Configuration

The overflow menu options can be extensively configured:

[
  {
    "text": "Edit Item",
    "type": "menu-link",
    "showMenuLinkIcon": true,
    "iconPositionKey": "menuLinkLeftIconName",
    "menuLinkLeftIconName": "edit-outline",
    "events": [
      {
        "type": "ON_OPTION_CLICK",
        "actions": [
          {
            "type": "NAVIGATE_TO_URL",
            "configuration": {
              "url": "/edit/{id}"
            }
          }
        ]
      }
    ]
  },
  {
    "text": "Delete Item",
    "type": "menu-link",
    "showMenuLinkIcon": true,
    "iconPositionKey": "menuLinkLeftIconName",
    "menuLinkLeftIconName": "delete-outline",
    "events": [
      {
        "type": "ON_OPTION_CLICK",
        "actions": [
          {
            "type": "SHOW_CONFIRMATION_DIALOG",
            "configuration": {
              "title": "Confirm Deletion",
              "message": "Are you sure you want to delete this item?"
            }
          }
        ]
      }
    ]
  }
]

Common Use Cases

The Dynamic Overflow Menu component is commonly used for:

  1. Row actions in tables - Providing actions like Edit, Delete, Archive for individual table rows
  2. Page-level actions - Housing secondary actions that don't warrant primary button placement
  3. Settings menus - Offering configuration options in a compact dropdown
  4. Export options - Providing various export formats like PDF, Excel, CSV

Design Considerations

When implementing the overflow menu component:

This component helps maintain a clean, uncluttered interface while still providing access to important functionality when needed.