1 package SL::Layout::ActionBar::ComboBox;
4 use parent qw(SL::Layout::ActionBar::Action);
8 use Rose::Object::MakeMethods::Generic (
9 'scalar --get_set_init' => [ qw(actions) ],
13 my ($class, $actions) = @_;
15 my $combobox = $class->new;
16 push @{ $combobox->actions }, SL::Layout::ActionBar->parse_actions(@{ $actions });
22 my ($first, @rest) = @{ $_[0]->actions };
23 $_[0]->p->html_tag('div',
24 $_[0]->p->html_tag('div', $first->render . $_[0]->p->html_tag('span'), class => 'layout-actionbar-combobox-head') .
25 $_[0]->p->html_tag('div', join('', map { $_->render } @rest), class => 'layout-actionbar-combobox-list'),
27 class => 'layout-actionbar-combobox',
32 map { $_->script } @{ $_[0]->actions }
35 sub init_actions { [] }