method
TextListField.MinRows
Set the minimum number of items.
Example
field.TextList("tags").MinRows(2)Arguments
| Argument | Type | Description |
|---|---|---|
value | int | Minimum item count, zero or greater. Zero adds no minimum. |
Returns
The updated TextListField; the original field is unchanged.
TextListFieldHow it works
A positive minimum also rejects omitted, null, and empty values. This counts list items, not characters or numeric magnitude.
Full signature
func (f TextListField) MinRows(value int) TextListFieldRelated types
TextListFieldA configurable list of strings.