method
TextListField.Hooks
Set lifecycle hooks for the whole list.
Arguments
| Argument | Type | Description |
|---|---|---|
value | Hooks[[]string] | A field.Hooks[[]string] value containing the hooks to run. |
Returns
The updated TextListField; the original field is unchanged.
TextListFieldHow 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 TextListField) Hooks(value Hooks[[]string]) TextListFieldRelated types
TextListFieldA configurable list of strings.