method
ChildrenDraft.EditBlock
Public method ChildrenDraft.EditBlock from github.com/riducms/ridu/field.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
slug | string | The slug value. |
edit | func(*ChildrenDraft) error | The edit value. |
Returns
The declared result.
errorFull signature
func (d *ChildrenDraft) EditBlock(
name,
slug string,
edit func(*ChildrenDraft) error,
) errorRelated types
ChildrenDraftChildrenDraft owns a detached slice. Committing snapshots again, so retained drafts cannot mutate published graphs. Structural edits are explicit.