Skip to main content

Action Menu API

Initialization

<script>
import { ActionMenu } from "@svar-ui/svelte-menu";

import { getOptions } from "./data";

const options = getOptions();
</script>

<ActionMenu {options}></ActionMenu>
  • Visit the Features Guide to learn more about the widget's functionality.
  • Explore the samples to visualize the available features.

Properties

atOptional. Specifies the position of Action Menu relative to the target node
cssOptional. Adds a custom style to the menu
dataKeyOptional. Specifies the id of the elements to show Action Menu for
filterOptional. Specifies what context to show for the specified targets
optionsOptional. Specifies a set of options for Action Menu
resolverOptional. Enables the multi-area mode and defines whether an element needs a menu

Events

clickOptional.Fires on clicking an item of Action Menu or outside the menu