Skip to main content

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

clearbuttonadds the Clear button into a combo input
disableddefines whether a combo is disabled
errordefines whether error styling is applied to a combo
idsets an HTML id for a combo
optionsspecifies a set of data items that will be used as combo options
placeholdersets the text of the input's placeholder
textfieldbinds combo options to the input field by the specified key
titlesets a tooltip text with additional info about the control
valuesets the value of a combo

Combo Events

selectfires when a new option is selected in a combo