method
TextListField.MaxRows
Set the maximum number of items.
Example
field.TextList("tags").MaxRows(8)Arguments
| Argument | Type | Description |
|---|---|---|
value | int | Maximum item count, zero or greater. Zero means no configured maximum. |
Returns
The updated TextListField; the original field is unchanged.
TextListFieldHow it works
The maximum must not be below MinRows. The admin disables Add item when this limit is reached.
Full signature
func (f TextListField) MaxRows(value int) TextListFieldRelated types
TextListFieldA configurable list of strings.