2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: counter
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
For a given number of things, use a counter.
|
|
|
|
Counters are for integers only. Things like number of buttons and so on.
|
|
|
|
|
|
|
|
Your counter option should be an object with these properties:
|
|
|
|
|
2021-10-17 18:26:00 +02:00
|
|
|
- `count` : The default integer value
|
|
|
|
- `min` : The minimal integer value that's allowed
|
|
|
|
- `max` : The maximum integer value that's allowed
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
options: {
|
|
|
|
butttons: {
|
|
|
|
count: 7,
|
|
|
|
min: 4,
|
|
|
|
max: 12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|