Skip to main content

DropDownMenu API

Initialization

<script>
import { DropDownMenu } from "wx-svelte-menu";

import { getOptions } from "./data";

const options = getOptions();
</script>

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

Properties

atspecifies the position of DropDown Menu relative to the target node
handlerprovides a custom trigger for a drop-down menu
optionsspecifies a set of options for DropDown Menu

Events

clickfires on clicking an item of DropDown Menu or outside the menu