Skip to content

Commit f280171

Browse files
committed
Add missing selector property for layout field, fixes #2180
1 parent 4889124 commit f280171

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

content/docs/3_reference/3_panel/3_fields/0_layout/reference-article.txt

+23
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,29 @@ The layout field supports up to 12 columns and all are listed below.
6666
- `11/12`
6767
- `12/12`
6868

69+
<since v="4.0.0">
70+
71+
## Customizing the selector
72+
73+
You can customize the size and number of columns in the layout selector to account for the number of different layouts you have defined via the `layouts` property.
74+
75+
76+
```yaml
77+
fields:
78+
layout:
79+
type: layout
80+
layouts:
81+
# ...
82+
selector:
83+
size: huge
84+
columns: 6
85+
```
86+
87+
Available sizes: `small`, `medium` (default), `large`, `huge`
88+
Default columns: 3
89+
90+
</since>
91+
6992
## Fieldsets
7093

7194
The layout field also accepts the `fieldsets` option from the blocks field to control blocks in columns.

0 commit comments

Comments
 (0)