1
0
Fork 0

fix(markdown): Restructure part reference. See #2981

This commit is contained in:
Joost De Cock 2022-10-18 21:00:50 +02:00
parent b4eb7e7b00
commit ac7b5befce
10 changed files with 105 additions and 110 deletions

View file

@ -0,0 +1,28 @@
---
title: Part.hide()
---
The `Part.hide()` method will mark the part as hidden.
This method returns the `part` object, so it's chainable.
<Tip>
This method can be destructured as `hidden`
in [a part's draft method](/reference/api/part/draft).
</Tip>
<Related>
The [unhide](/reference/api/part/unhide) and
[setHidden](/reference/api/part/sethidden) methods also control a
part's visibility
</Related>
## Part.hide() example
```js
cont part = {
name: 'examples.hide',
draft: ({ hide, part }) => part.hide()
}
```