Class Choices-Presentation-Mixin

Part of:

package weblocks, class radio-presentation, class dropdown-presentation

Direct Subclass

dropdown-presentation
radio-presentation

Slot

choices
A list of choices a user may select from. This value may be bound either to a list of choices, or a function object that accepts the object being rendered and returns such a list. The list may contain single entries (in which case the label for each choice will be obtained via 'label-key' and value via 'value-key'), or cons pairs, in which case label will be obtained by car, and value via cdr.
Initargs::choices; Accessors:presentation-choices.
label-key
A function used to transform a choice into a label. Default implementation transforms CLOS objects via 'object-class-name', and other lisp objects via 'humanize-name' (see presentation-choices-default-label-key).
Initform:#'presentation-choices-default-label-key, Initargs::label-key; Accessors:presentation-choices-label-key.
value-key
A function used to transform a choice into a value. Default implementation transforms CLOS objects via 'object-id', and other lisp objects via 'attributize-name' (see presentation-choices-default-value-key).
Initform:#'presentation-choices-default-value-key, Initargs::value-key; Accessors:presentation-choices-value-key.