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