method
NumberListField.Hooks
Set lifecycle hooks for the whole list.
Arguments
| Argument | Type | Description |
|---|---|---|
value | Hooks[[]float64] | A field.Hooks[[]float64] value containing the hooks to run. |
Returns
The updated NumberListField; the original field is unchanged.
NumberListFieldHow 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
func (f NumberListField) Hooks(value Hooks[[]float64]) NumberListFieldRelated types
NumberListFieldA configurable list of numbers.