Revision 5a55ac86
Von Sven Schöling vor etwa 7 Jahren hinzugefügt
SL/Layout/ActionBar/ComboBox.pm | ||
---|---|---|
5 | 5 |
|
6 | 6 |
use JSON; |
7 | 7 |
use List::MoreUtils qw(none); |
8 |
use SL::Presenter::Tag qw(html_tag); |
|
8 | 9 |
|
9 | 10 |
use Rose::Object::MakeMethods::Generic ( |
10 | 11 |
'scalar --get_set_init' => [ qw(actions) ], |
... | ... | |
25 | 26 |
return if none { $_->callable } @{ $_[0]->actions }; |
26 | 27 |
return $first->render if !@rest; |
27 | 28 |
|
28 |
$_[0]->p->html_tag('div',
|
|
29 |
$_[0]->p->html_tag('div', $first->render . $_[0]->p->html_tag('span'), class => 'layout-actionbar-combobox-head') .
|
|
30 |
$_[0]->p->html_tag('div', join('', map { $_->render } @rest), class => 'layout-actionbar-combobox-list'),
|
|
29 |
html_tag('div', |
|
30 |
html_tag('div', $first->render . html_tag('span'), class => 'layout-actionbar-combobox-head') .
|
|
31 |
html_tag('div', join('', map { $_->render } @rest), class => 'layout-actionbar-combobox-list'), |
|
31 | 32 |
id => $_[0]->id, |
32 | 33 |
class => 'layout-actionbar-combobox', |
33 | 34 |
); |
Auch abrufbar als: Unified diff
Presenter: Neue Struktur im Layout umgesetzt