1
0
Fork 0

chore(docs): Revert non-core API edits

This commit is contained in:
Benjamin F 2022-12-10 11:58:26 -08:00
parent a8912b3e60
commit 922562ac25
3 changed files with 2 additions and 12 deletions

View file

@ -31,7 +31,6 @@ options: {
deg: 85,
min: 60,
max: 130,
menu: 'fit'
}
}
```

View file

@ -9,7 +9,7 @@ list the part's options:
const part = {
name: 'example.front',
options: {
chestEase: { pct: 12, min: 0, max: 25, menu: 'fit' },
chestEase: { pct: 12, min: 0, max: 25 },
},
draft: ({ part }) => part
}
@ -61,14 +61,6 @@ percentage options][snapped] instead.
</Warning>
## Specifying the menu
The `menu` property is used to specify what menu name the option should be listed under in the Design Options section.
- Any arbitrary string can be used, and these names are used to organize options into logical sections. Examples of menu names that might be used include `fit`, `style`, and `advanced`.
- The menu property is optional. An option without a menu property will still exist but be hidden, not shown or accessible to the user in Design Options.
- Additional levels of submenus can be specified by using a menu name with text separated by "`.`" period characters. For example, `style.sleeves` can be used to have the option appear in the "Sleeves" submenu under the "Style" menu.
- Menus and options will be appear to the user in alphabetical order. The exception is the `advanced` menu which, if present, will be displayed at the end of all other menus.
[bool]: /reference/api/part/config/options/bool
[const]: /reference/api/part/config/options/const
[count]: /reference/api/part/config/options/counter

View file

@ -35,8 +35,7 @@ options: {
"roundedFrenchCuff",
"angledFrenchCuff",
"straightFrenchCuff"
],
menu: 'style'
]
}
}
```