method
NumberListField.Max
Set the maximum value of each number.
Example
field.NumberList("availableSizes").Max(50)Arguments
| Argument | Type | Description |
|---|---|---|
value | float64 | Inclusive finite upper bound for every item. |
Returns
The updated NumberListField; the original field is unchanged.
NumberListFieldHow it works
The bound must not be below Min. Use MaxRows to limit the number of items.
Full signature
func (f NumberListField) Max(value float64) NumberListFieldRelated types
NumberListFieldA configurable list of numbers.