method

TextListField.Hooks

Set lifecycle hooks for the whole list.

Arguments

ArgumentTypeDescription
valueHooks[[]string]A field.Hooks[[]string] value containing the hooks to run.

Returns

The updated TextListField; the original field is unchanged.

TextListField

How it works

Replaces previously configured write/event hooks. BeforeChange receives the whole typed list and may return a replacement. Raw hooks still receive store.Value.

Use AppendHooks or PrependHooks to keep existing hooks.

Full signature

Related types

Related guides