fix(markdown): Restructure part reference. See #2981
This commit is contained in:
parent
b4eb7e7b00
commit
ac7b5befce
10 changed files with 105 additions and 110 deletions
28
markdown/dev/reference/api/part/hide/en.md
Normal file
28
markdown/dev/reference/api/part/hide/en.md
Normal 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()
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue