Dropdown API Overview
Initialization
<script>
import { Dropdown } from "wx-svelte-core";
</script>
<!-- minimal configuration for initialization -->
<Dropdown>
<!-- a component to put inside a dropdown -->
</Dropdown>
tip
Visit the Features Guide to learn more about the functionality of this layout element.
Dropdown Properties
align | defines the alignment of a dropdown relative to the input |
autofit | defines whether a dropdown automatically fits to the width of the input |
cancel | sets the function that closes a dropdown |
position | defines the position of a dropdown relative to the input |
width | sets the width of a dropdown |