Maypole::Plugin::QuickTable 0.422
Sponsored Links
Maypole::Plugin::QuickTable 0.422 Ranking & Summary
File size:
0.007 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1095
Date added:
2006-10-24
Publisher:
David Baird
Maypole::Plugin::QuickTable 0.422 description
Maypole::Plugin::QuickTable is a HTML::QuickTable convenience.
SYNOPSIS
use Maypole::Application qw( LinkTools QuickTable );
METHODS
setup
quick_table
Returns a HTML::QuickTable object for formatting data.
print $request->quick_table( %args )->render( $data );
The method gathers arguments from the quicktable_defaults method on the model class. This is a Class::Data::Inheritable method, so you can set global defaults on the main model class, and then override them in model subclasses. To preserve most settings and override others, say something like
$sub_model->quicktable_defaults( { %{ $model->quicktable_defaults }, %hash_of_overrides } );
Arguments passed in the method call override those stored on the model.
Arguments are passed directly to HTML::QuickTable->new, so see HTML::QuickTable for a description.
Additional arguments are:
object => a Maypole/CDBI object
Pass a Maypole/CDBI object in the object slot, and its data will be extracted and $qt->render called for you:
print $request->quick_table( %args, object => $object );
Related objects will be displayed as links to their view template.
If no object is supplied, a HTML::QuickTable object is returned. If an object is supplied, it is passed to tabulate to extract its data, and the data passed to the render method of the HTML::QuickTable object.
To render a subset of an objects columns, say:
my @data = $request->tabulate( objects => $object, with_colnames => 1, fields => [ qw( foo bar ) ] );
$request->quick_table( @data );
tabulate( $object|$arrayref_of_objects, %args )
Extract data from a Maypole/CDBI object (or multiple objects), ready to pass to quick_table->render. Data will start with a row of column names if $args{with_colnames} is true.
A callback subref can be passed in $args{callback}. It will be called in turn with each object as its argument. The result(s) of the call will be added to the row of data for that object. See the list template in Maypole::FormBuilder, which uses this technique to add edit and delete buttons to each row.
Similarly, a field_callback coderef will be called during rendering of each field, receiving the object and the current field as arguments. See the addmany template for an example.
Arguments:
callback coderef
field_callback coderef
with_colnames boolean
fields defaults to ( $request->model_class->display_columns, $request->model_class->related )
objects defaults to $request->objects
orderby_link( $field, [ $model_class ] )
Build a link for a column header. Controls whether the table should be sorted by that column. Toggles sort direction.
The $model_class parameter is only necessary when building a table for a class different from the current model class for the request.
SYNOPSIS
use Maypole::Application qw( LinkTools QuickTable );
METHODS
setup
quick_table
Returns a HTML::QuickTable object for formatting data.
print $request->quick_table( %args )->render( $data );
The method gathers arguments from the quicktable_defaults method on the model class. This is a Class::Data::Inheritable method, so you can set global defaults on the main model class, and then override them in model subclasses. To preserve most settings and override others, say something like
$sub_model->quicktable_defaults( { %{ $model->quicktable_defaults }, %hash_of_overrides } );
Arguments passed in the method call override those stored on the model.
Arguments are passed directly to HTML::QuickTable->new, so see HTML::QuickTable for a description.
Additional arguments are:
object => a Maypole/CDBI object
Pass a Maypole/CDBI object in the object slot, and its data will be extracted and $qt->render called for you:
print $request->quick_table( %args, object => $object );
Related objects will be displayed as links to their view template.
If no object is supplied, a HTML::QuickTable object is returned. If an object is supplied, it is passed to tabulate to extract its data, and the data passed to the render method of the HTML::QuickTable object.
To render a subset of an objects columns, say:
my @data = $request->tabulate( objects => $object, with_colnames => 1, fields => [ qw( foo bar ) ] );
$request->quick_table( @data );
tabulate( $object|$arrayref_of_objects, %args )
Extract data from a Maypole/CDBI object (or multiple objects), ready to pass to quick_table->render. Data will start with a row of column names if $args{with_colnames} is true.
A callback subref can be passed in $args{callback}. It will be called in turn with each object as its argument. The result(s) of the call will be added to the row of data for that object. See the list template in Maypole::FormBuilder, which uses this technique to add edit and delete buttons to each row.
Similarly, a field_callback coderef will be called during rendering of each field, receiving the object and the current field as arguments. See the addmany template for an example.
Arguments:
callback coderef
field_callback coderef
with_colnames boolean
fields defaults to ( $request->model_class->display_columns, $request->model_class->related )
objects defaults to $request->objects
orderby_link( $field, [ $model_class ] )
Build a link for a column header. Controls whether the table should be sorted by that column. Toggles sort direction.
The $model_class parameter is only necessary when building a table for a class different from the current model class for the request.
Maypole::Plugin::QuickTable 0.422 Screenshot
Advertisements
Maypole::Plugin::QuickTable 0.422 Keywords
QuickTable
HTML
QuickTable 0.422
CDBI
object
data
model
objects
defaults
class
Maypole::Plugin::QuickTable
MaypolePluginQuickTable
Maypole::Plugin::QuickTable 0.422
Libraries
Programming
Bookmark Maypole::Plugin::QuickTable 0.422
Maypole::Plugin::QuickTable 0.422 Copyright
WareSeeker periodically updates pricing and software information of Maypole::Plugin::QuickTable 0.422 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Maypole::Plugin::QuickTable 0.422 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
myspace falling objects
business objects
objects in the rear view mirror may appear closer than they are
hidden objects games
falling objects
sims 2 objects
sims objects
models sporting goods
object lessons
quicktable java
americau0027s next top model
hidden object games
objectives for resumes
model ships
modells
dataquick
objective
html code
Related Software
HTML::QuickTable is a Perl module to quickly create fairly complex HTML tables. Free Download
Plugin::Installers goal is to provide a simple, flexable interface for developing plugin languages. Free Download
A Free Java Grid control - QuickTable for database/EJB/Hibernate using JTable Free Download
Maypole::FormBuilder is a Perl module with CGI::FormBuilder support in Maypole. Free Download
Maypole::Plugin::Authorization is a Perl module that provides a role-based authorization for Maypole applications. Free Download
Maypole is a Perl framework for MVC-oriented web applications, similar to Jakartas Struts. Free Download
Maypole::Manual::View is a Perl module for Maypole View Classes. Free Download
Data::SpreadPagination is a Perl module for page numbering and spread pagination. Free Download
Latest Software
Popular Software
Favourite Software