method

ChildrenDraft.EditBranch

EditBranch targets an explicit object, row, block case, tab or embedded case.

Arguments

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

Returns

The declared result.

error

Full signature

func (d *ChildrenDraft) EditBranch( name string, selector BranchSelector, edit func(*ChildrenDraft) error, ) error

Source field/graph_edit.go:378

Related types

  • ChildrenDraft

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

  • BranchSelector

    BranchSelector selects one structural child boundary, never a flattened path. Index identifies an authored tab; Tree/Case/Key identify plugin payload cases.