Action Menu API
Initialization
<script>
import { ActionMenu } from "wx-svelte-menu";
import { getOptions } from "./data";
const options = getOptions();
</script>
<ActionMenu {options}></ActionMenu>
Related resources
- Visit the Features Guide to learn more about the widget's functionality.
- Explore the samples to visualize the available features.
Properties
at | specifies the position of Action Menu relative to the target node |
datakey | specifies the id of the elements to show Action Menu for |
filter | specifies what context to show for the specified targets |
handler | provides a custom trigger for Action Menu |
options | specifies a set of options for Action Menu |
resolver | enables the multi-area mode and defines whether an element needs a menu |
Events
click | fires on clicking an item of Action Menu or outside the menu |