chore(markdown): Update option docs
This commit is contained in:
parent
d0e05fe455
commit
52ddbaaa02
28 changed files with 952 additions and 631 deletions
26
markdown/dev/reference/api/config/options/bool/en.md
Normal file
26
markdown/dev/reference/api/config/options/bool/en.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: boolean
|
||||
---
|
||||
|
||||
For options where the choice is either `true` or `false`, **on** or **off**,
|
||||
or **yes** or **no**, use a boolean option.
|
||||
|
||||
## Structure
|
||||
|
||||
A boolean option is a plain object with these properties:
|
||||
|
||||
- `bool` : Either `true` or `false` which will be the default
|
||||
- `hide` <small>(optional)</small> : A method to [control the optional display of the option][hide]
|
||||
|
||||
[hide]: /reference/api/config/options#optionally-hide-options-by-configuring-a-hide-method
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
options: {
|
||||
withLining: {
|
||||
bool: true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue