Counter API Overview
Initialization
<script>
import { Counter } from "wx-svelte-core";
</script>
<!-- minimal configuration for initialization -->
<Counter />
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Counter Properties
disabled | defines whether a counter is disabled |
error | defines whether error styling is applied to the Counter control |
id | sets an HTML id for a counter |
max | sets the maximal value of the counter |
min | sets the minimal value of the counter |
readonly | defines whether a counter is read-only |
step | sets the jump between values of the counter |
value | sets the value of a counter |
Counter Events
change | fires when a number is changed in the counter |