NAME

Krang::ElementClass::ListBox - list box element class


SYNOPSIS

  $class = pkg('ElementClass::ListBox')->new(name         => "color",
                                             size         => 1,
                     values       => [ 'red', 'white', 'blue' ],
                     labels       => { red   => "Red",
                                       white => "White",
                                       blue  => "Blue" }.
                     default      => [ 'white' ],
                    );


DESCRIPTION

Provides a list menu element class. Otherwise known as a select box in HTML, but differentiated from Krang::ElementClass::ListBox by the fact that it never allows more than one option to be selected.

Elements using this class must contain references to arrays in data(), even if multiple is 0.


INTERFACE

All the normal Krang::ElementClass attributes are available, plus: