2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: hide
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-05 17:44:23 +01:00
|
|
|
The `hide` key in the pattern configuration file allow you to configure
|
2022-02-05 19:01:48 +01:00
|
|
|
parts that should be hidden by default.
|
2022-02-05 17:44:23 +01:00
|
|
|
*Hidden* means that they will be drafted, but not rendered. This is
|
2022-02-05 19:02:07 +01:00
|
|
|
typically used for a base part on which other parts are built.
|
2022-02-05 17:44:23 +01:00
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
Note that hidden parts will be rendered when the user requests
|
|
|
|
to [only draft some parts of a pattern](/reference/api/settings/only)
|
2022-02-05 17:44:23 +01:00
|
|
|
and includes the hidden part(s).
|
|
|
|
|
|
|
|
## Structure
|
|
|
|
|
2022-02-05 19:02:28 +01:00
|
|
|
An array of strings that holds part names.
|
2022-02-05 17:44:23 +01:00
|
|
|
|
|
|
|
## Example
|
|
|
|
|
2021-08-25 16:09:31 +02:00
|
|
|
```js
|
|
|
|
hide: [
|
|
|
|
"base"
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
2022-02-05 17:44:23 +01:00
|
|
|
In the configuration above, the `base` part will be hidden by default.
|