method

NumberListField.Hooks

Set lifecycle hooks for the whole list.

Arguments

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

Returns

The updated NumberListField; the original field is unchanged.

NumberListField

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