Skip to content
DocsReference
DocsReferenceGitHub

Search Ridu documentation

tab controls

Loading search…

Search will be ready in a moment.

No matching results

Try a different term or search every section.

Loading search.

Preparing index…View all results →↑↓ move↵ openesc close
Get started
Modules/field
MTextListField.ReadHooks

Go packages

riducorefieldoperationqueryschemastorestoragemigrationmigration/payloadprotocol (Go)plugintestconformance

Official adapters

postgressqlitemongodbstorage/localstorage/s3

Official plugins

graphqlmcprichtextseoformbuilder@riducms/plugin-richtext@riducms/plugin-seo@riducms/plugin-form-builder

TypeScript packages

@riducms/sdk@riducms/protocol@riducms/plugin@riducms/build@riducms/ui@riducms/admin@riducms/translations@riducms/cli/run

Tooling

ridu CLI
Allfieldriducoreoperationqueryschemastorestoragemigrationmigration/payloadprotocol (Go)plugintestpostgressqlitemongodbgraphqlmcprichtextseoformbuilderstorage/localstorage/s3conformance@riducms/sdk@riducms/protocol@riducms/plugin@riducms/build@riducms/ui@riducms/plugin-richtext@riducms/plugin-seo@riducms/plugin-form-builder@riducms/admin@riducms/translations@riducms/cli/runridu CLI
All 1023TextareaField.MinLengthTextListField.PrependHooksTextListField.PrivateTextListField.ReadHookPolicyTextListField.ReadHooksTextListField.RenameTextListField.ReplaceLiveValidatorsTextListField.ReplaceValidators

method

TextListField.ReadHooks

Set hooks that shape the returned list.

ArgumentsReturnsHow it worksFull signature

Arguments

ArgumentTypeDescription
valueReadHooks[[]string]A field.ReadHooks[[]string] value containing read hooks.

Returns

The updated TextListField; the original field is unchanged.

TextListField

How it works

Replaces configured read hooks. AfterRead can change the returned list without rewriting stored values.

Full signature

func (f TextListField) ReadHooks(value ReadHooks[[]string]) TextListField

Source field/primitive_list.go:98

Related types

  • TextListField

    A configurable list of strings.

Related guides

  • Text and number lists