method
BlocksField.EditBlocks
EditBlocks edits a detached block declaration slice and publishes it only when the edit succeeds. Field-owned behavior and presentation are preserved.
Arguments
| Argument | Type | Description |
|---|---|---|
edit | func(*[]Block) error | The edit value. |
Returns
The declared result.
(BlocksField, error)Full signature
func (f BlocksField) EditBlocks(edit func(*[]Block) error) (BlocksField, error)Related types
BlocksFieldBlocksField configures an ordered list of rows chosen from the supplied block types.
BlockBlock is one discriminated layout allowed by a blocks field.