function
Collapsible
Collapsible displays fields beneath a heading the author can expand or collapse.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
children | Fields | The children value. |
Returns
The declared result.
LayoutFieldFull signature
func Collapsible(
name string,
children Fields,
) LayoutFieldRelated types
FieldsFields is the ordered list assigned to ridu.Collection.Fields, ridu.Global.Fields, or a nested field constructor. Populate it with Nodes from this package's constructors. Ridu snapshots the caller-owned slice during construction, editing, and config resolution.
LayoutFieldLayoutField arranges fields in the admin without adding a stored value.