NAME

Krang::ElementClass::PopupMenu - popup menu element class


SYNOPSIS

  $class = pkg('ElementClass::PopupMenu')->new(name         => "alignment",
                     values       => [ 'center', 'left', 'right' ],
                     labels       => { center => "Center",
                                       left   => "Left",
                                       right  => "Right" });


DESCRIPTION

Provides a popup 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. As a result, $element->data() contains a scalar value for elements of this class.


INTERFACE

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