MenuBar API
Initialization
<script>
import { MenuBar } from "wx-svelte-menu";
import { getOptions } from "./data";
const options = getOptions();
</script>
<MenuBar {options}></MenuBar>
Related resources
- Visit the Features Guide to learn more about the widget's functionality.
- Explore the samples to visualize the available features.
Properties
options | specifies a set of options for Menu Bar |
Events
click | fires on clicking a menu bar item or outside the menu bar |