type
TextListField
A configurable list of strings.
How it works
Create it with field.TextList(name). Setters return a new definition, leaving the original unchanged.
List-length limits use MinRows and MaxRows. Text-length limits apply to each string.
Callbacks operate on the whole []string list. Items have no child field definitions or saved row keys.
Full signature
type TextListField struct{ nodeView }Methods
TextListField.Access()Access replaces the complete field access policy.
TextListField.Admin()Admin replaces the complete admin presentation policy.
TextListField.AppendHooks()AppendHooks appends supplied callbacks after existing callbacks in each phase.
TextListField.AppendReadHooks()AppendReadHooks appends response-transform hooks after existing callbacks.
TextListField.Default()Set the initial list.
TextListField.DefaultCallback()Read the configured dynamic default.
TextListField.DefaultFrom()Calculate the initial list on the server.
TextListField.EditAdmin()EditAdmin updates selected admin settings while preserving the rest.
TextListField.HookPolicy()Public method TextListField.HookPolicy from github.com/riducms/ridu/field.
TextListField.Hooks()Set lifecycle hooks for the whole list.
TextListField.Label()Public method TextListField.Label from github.com/riducms/ridu/field.
TextListField.LabelTranslations()Public method TextListField.LabelTranslations from github.com/riducms/ridu/field.
TextListField.LiveValidate()Add a server check that provides feedback while this field is being edited.
TextListField.LiveValidators()Read the live server checks attached to this field.
TextListField.Localized()Public method TextListField.Localized from github.com/riducms/ridu/field.
TextListField.MaxLength()Set the maximum length of each string.
TextListField.MaxRows()Set the maximum number of items.
TextListField.MinLength()Set the minimum length of each string.
TextListField.MinRows()Set the minimum number of items.
TextListField.PrependHooks()PrependHooks inserts supplied callbacks before existing callbacks in each phase.
TextListField.Private()Public method TextListField.Private from github.com/riducms/ridu/field.
TextListField.ReadHookPolicy()Public method TextListField.ReadHookPolicy from github.com/riducms/ridu/field.
TextListField.ReadHooks()Set hooks that shape the returned list.
TextListField.Rename()Public method TextListField.Rename from github.com/riducms/ridu/field.
TextListField.ReplaceLiveValidators()Replace this field’s live server checks, or remove them all.
TextListField.ReplaceValidators()Replace the list’s save validators.
TextListField.Required()Require a nonempty list.
TextListField.RestrictAccess()RestrictAccess combines supplied rules with existing access rules; both must allow.
TextListField.Validate()Add a rule for the whole list when saving.
TextListField.Validators()Public method TextListField.Validators from github.com/riducms/ridu/field.