2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: optionGroups
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-10-17 18:26:00 +02:00
|
|
|
Organises your pattern options in groups.
|
2021-08-25 16:09:31 +02:00
|
|
|
It expects an object where the key is the group title, and the value an array of options:
|
|
|
|
|
|
|
|
```js
|
|
|
|
optionGroups: {
|
|
|
|
fit: ["chestEase", "hipsEase", "stretchFactor"],
|
|
|
|
style: [
|
|
|
|
"armholeDrop",
|
|
|
|
"backlineBend",
|
|
|
|
"necklineBend",
|
|
|
|
"necklineDrop",
|
|
|
|
"shoulderStrapWidth",
|
|
|
|
"shoulderStrapPlacement",
|
|
|
|
"lengthBonus"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
<Note>
|
|
|
|
|
|
|
|
Options that are not included in the `optionGroup` configuration won't be
|
|
|
|
exposed in the frontend and thus will be unavailable to the user.
|
|
|
|
|
|
|
|
</Note>
|
2021-10-17 18:26:00 +02:00
|
|
|
|