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.MinLength

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.LabelTranslationsTextListField.LocalizedTextListField.MaxLengthTextListField.MaxRowsTextListField.MinLengthTextListField.MinRowsTextListField.PrependHooksTextListField.Private

method

TextListField.MinLength

Set the minimum length of each string.

ExampleArgumentsReturnsHow it worksFull signature

Example

go
field.TextList("tags").MinLength(1)

Arguments

ArgumentTypeDescription
valueintMinimum number of Unicode code points per item, zero or greater.

Returns

The updated TextListField; the original field is unchanged.

TextListField

How it works

This does not require the list itself to contain items. Add Required or MinRows for that. Whitespace is preserved.

Full signature

func (f TextListField) MinLength(value int) TextListField

Source field/primitive_list.go:137

Related types

  • TextListField

    A configurable list of strings.

Related guides

  • Text and number lists