method
NumberListField.MinRows
Set the minimum number of items.
Example
field.NumberList("availableSizes").MinRows(2)Arguments
| Argument | Type | Description |
|---|---|---|
value | int | Minimum item count, zero or greater. Zero adds no minimum. |
Returns
The updated NumberListField; the original field is unchanged.
NumberListFieldHow 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 NumberListField) MinRows(value int) NumberListFieldRelated types
NumberListFieldA configurable list of numbers.