method

ChildrenDraft.EditChildren

EditChildren targets the one direct children branch of an object/array/layout. Blocks, tabs and embedded payloads require their explicit branch selector.

Arguments

ArgumentTypeDescription
namestringThe name value.
editfunc(*ChildrenDraft) errorThe edit value.

Returns

The declared result.

error

Full signature

func (d *ChildrenDraft) EditChildren( name string, edit func(*ChildrenDraft) error, ) error

Source field/graph_edit.go:411

Related types

  • ChildrenDraft

    ChildrenDraft owns a detached slice. Committing snapshots again, so retained drafts cannot mutate published graphs. Structural edits are explicit.