Catalyst::Controller::Rose::EIP - base class for Edit In Place tables
# 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 ] ); }
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.
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:
See the examples/ dir in the distribution.
Peter Karman <perl@peknet.com>
Thanks to Atomic Learning, Inc for sponsoring the development of this module.
This library is free software. You may redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Controller::Rose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Controller::Rose
CPAN shell
perl -MCPAN -e shell install Catalyst::Controller::Rose
For more information on module installation, please visit the detailed CPAN module installation guide.