Select API Overview
Initialization
<script>
import { Select } from "wx-svelte-core";
const dataset = [
{id: 1, label: "First option"},
{id: 2, label: "Second option"},
{id: 3, label: "Third option"}
]
</script>
<Select options={dataset}/>
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Select Properties
disabled | defines whether a select is disabled |
error | defines whether error styling is applied to a select |
id | sets an HTML id for a select |
label | binds Select options to the input field by the specified key |
options | specifies a set of data items that will be used as select options |
placeholder | sets a placeholder for the text field of Select |
title | sets a tooltip text with additional info about the control |
value | sets the value of a select |