1
0
Fork 0
freesewing/sites/dev/docs/reference/api/part/config/options/counter
Joost De Cock ab3204f9f1 chore: Port FreeSewing.dev to docusaurus
The replaces the NextJS site powering FreeSewing.dev with a Docusaurus
setup. It's part of my efforts to simplify FreeSewing's setup so we can
focus on our core value proposition.
2024-09-28 13:13:48 +02:00
..
readme.mdx chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00

---
title: Counter options
---

For a given number of things, use a counter option.
Counters are for integers only. Things like number of buttons and so on.

## Structure

Your counter option should be a plain object with these properties:

- `count` : The default integer value
- `min` : The minimum integer value that's allowed
- `max` : The maximum integer value that's allowed

:::tip

Like all options that are configured through an object, you can 
add more properties to the options' object to implement functionality on
top of what's provided by the core library.

Refer to [extending options](/reference/api/part/config/options/extend) for
more details.

:::

## Example

```js
options: {
  butttons: { 
    count: 7, 
    min:   4,
    max:  12 
  }
}
```