Checkbox API Overview
Initialization
<script>
import { Checkbox } from "wx-svelte-core";
</script>
<!-- minimal configuration for initialization -->
<Checkbox />
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Checkbox Properties
checked | defines whether a checkbox is checked |
disabled | defines whether a checkbox is disabled |
id | sets an HTML id for a checkbox |
label | specifies the label of a checkbox |
name | specifies the name associated with a checkbox |
style | adds a CSS inline style for a checkbox |
value | specifies the state of a checkbox |
Checkbox Events
change | fires when the state of a checkbox is changed |