method
TextListField.MaxLength
Set the maximum length of each string.
Example
field.TextList("tags").MaxLength(30)Arguments
| Argument | Type | Description |
|---|---|---|
value | int | Maximum number of Unicode code points per item, zero or greater. |
Returns
The updated TextListField; the original field is unchanged.
TextListFieldHow it works
Zero permits only empty strings. The limit must be at least MinLength. Use MaxRows to limit the number of items.
Full signature
func (f TextListField) MaxLength(value int) TextListFieldRelated types
TextListFieldA configurable list of strings.