diff options
Diffstat (limited to 'lib/ComponentUI')
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Foo.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ComponentUI/Controller/TestModel/Foo.pm b/lib/ComponentUI/Controller/TestModel/Foo.pm index b5dfe5b..e8e2318 100644 --- a/lib/ComponentUI/Controller/TestModel/Foo.pm +++ b/lib/ComponentUI/Controller/TestModel/Foo.pm @@ -11,6 +11,10 @@ __PACKAGE__->config( list => { ViewPort => { excluded_fields => [qw/id/], + action_order => [qw/delete_all create/], + Member => { + action_order => [qw/view update delete/], + }, }, }, view => { @@ -40,4 +44,11 @@ for my $action (qw/view create update/){ ); } +sub _build_action_viewport_args { + my $self = shift; + my $args = $self->next::method(@_); + $args->{list}{action_prototypes}{delete_all}{label} = 'Delete All Records'; + return $args; +} + 1; |