The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::Controller::Rose::EIP - base class for Edit In Place tables

SYNOPSIS

 # controller subclass
 
 package MyApp::Controller::User::Role;
 use base 'Catalyst::Controller::Rose::EIP';
 sub form_class  { 'User::Role::Form' }
 sub init_form   { 'init_with_role' }
 sub init_object { 'role_from_form' }
 sub template    { 'path/tt/eip_tbody.tt' }
 sub model_name  { 'Role' }

 1;
 
 # then call the methods elsewhere in a different controller
 
 sub user_roles
 {
    my ($self, $c, $uid) = @_;
    
    my $user = $c->model('User')->fetch( id => $uid );
    
    $c->stash->{roles} = $c->forward('User::Role', 
                                     'eip_table',
                                     [ data => $user->roles ]
                                     );
                                     
 }
 
 

DESCRIPTION

Catalyst::Controller::Rose::EIP is a base class for creating and managing Edit In Place tables.

The EIP features rely heavily on the atomic_eip.js JavaScript library, which builds on top of Prototype.js.

METHODS

Catatlyst::Controller::Rose::EIP is a subclass of Catalyst::Controller::Rose::CRUD. Only new or overridden methods are documented here.

The following methods are available:

eip_fields

eip_table_name

eip_id_joiner

eip_table

eip_set_cols

eip_set_cells

auto

postcommit

save

rm

edit

view

EXAMPLES

See the examples/ dir in the distribution.

AUTHOR

Peter Karman <perl@peknet.com>

Thanks to Atomic Learning, Inc for sponsoring the development of this module.

LICENSE

This library is free software. You may redistribute it and/or modify it under the same terms as Perl itself.