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