fix(docs): Howtos documentation corrections and updates
This commit is contained in:
parent
04da277fd2
commit
24f7776840
25 changed files with 46 additions and 43 deletions
|
@ -2,18 +2,19 @@
|
|||
title: Accessing options
|
||||
---
|
||||
|
||||
(the value of) Options are available on the `options` key of from the object
|
||||
Options are available on the `options` key of from the object
|
||||
passed to your part's draft method. You can destructure them for easy access.
|
||||
|
||||
```design/src/part.mjs
|
||||
function draftPart = ({
|
||||
function draftPart = ({
|
||||
// highlight-start
|
||||
options,
|
||||
options,
|
||||
// highlight-end
|
||||
part
|
||||
part
|
||||
}) {
|
||||
|
||||
// Do something here
|
||||
const a = options.fitKnee
|
||||
const b = options[waistEase]
|
||||
|
||||
return part
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue