DropDownMenu API
Initialization
<script>
import { DropDownMenu } from "wx-svelte-menu";
import { getOptions } from "./data";
const options = getOptions();
</script>
<DropDownMenu {options}></DropDownMenu>
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 DropDown Menu relative to the target node |
handler | provides a custom trigger for a drop-down menu |
options | specifies a set of options for DropDown Menu |
Events
click | fires on clicking an item of DropDown Menu or outside the menu |