use Scalar::Util qw(blessed);
use SL::Layout::ActionBar::Action;
use SL::Layout::ActionBar::ComboBox;
+use SL::Layout::ActionBar::Link;
use SL::Layout::ActionBar::Separator;
use constant HTML_CLASS => 'layout-actionbar';
my %class_descriptors = (
action => { class => 'SL::Layout::ActionBar::Action', num_params => 1, },
combobox => { class => 'SL::Layout::ActionBar::ComboBox', num_params => 1, },
+ link => { class => 'SL::Layout::ActionBar::Link', num_params => 1, },
separator => { class => 'SL::Layout::ActionBar::Separator', num_params => 0, },
);
while (my $type = shift(@actions)) {
if (blessed($type) && $type->isa('SL::Layout::ActionBar::Action')) {
push @parsed, $type;
- continue;
+ next;
}
my $descriptor = $class_descriptors{lc $type} || croak("Unknown action type '${type}'");
=over 4
-=item C<add_actions LIST>
+=item C<add LIST>
-Dispatches each each argument to C<add_action>
+to be documented
-=item C<add_action>
-
-
-=item C<add_separator>
-
-=item C<add_
+=back
=head1 ACCESS FROM CODE