method
TextListField.MinLength
Set the minimum length of each string.
Example
field.TextList("tags").MinLength(1)Arguments
| Argument | Type | Description |
|---|---|---|
value | int | Minimum number of Unicode code points per item, zero or greater. |
Returns
The updated TextListField; the original field is unchanged.
TextListFieldHow 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) TextListFieldRelated types
TextListFieldA configurable list of strings.