Module view.fields.choice_field

ChoiceField module.

Class ChoiceField

ChoiceField:ChoiceField (opts) ChoiceField constructor.


Class ChoiceField

ChoiceField class.
ChoiceField:ChoiceField (opts)
ChoiceField constructor.

Parameters:

  • opts Table
    • title string Title.
    • items table List of items.
    • captions table List of captions (one per item). (default items)

See also:

Usage:

     ChoiceField({
         name = "choiceField",
         items = {1, 2, 3},
         captions = {"Blue", "Green", "Yellow"},
     })
generated by LDoc 1.4.3 Last updated 2017-09-23 19:07:28