Apache::Wyrd::Interfaces::Columnize - Add limited table auto-formatting
use base qw(Apache::Wyrd::Intefaces::Columnize Apache::Wyrd); sub _format_output { my ($self) = @_; my @items = $self->_get_items; my $data = $self->_columnize(@items); $self->_data($data); }
Arranges a given array of items into a table based on the number found in the Wyrd's columns attribute.
columns
Currently, the interface also will interpret the style attribute of the Wyrd to be included as the named style of the table data (TD) tags it uses to build the table. It also looks to the cellpadding and cellspacing attributes to pass to the enclosing table. These criteria are under review may change in the future.
style
cellpadding
cellspacing
The number of columns the table will consist of. The table will be line- broken based on this number of columns.
When set to "down", will arrange the items left-column first, moving right. Otherwise, they are arranged left to right across the columns.
Takes an array of items, assumed to be HTML text and arranges them in columns (by default, across-first) of an HTML Table, and returns the text of that table.
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
Apache::Wyrd
4 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Apache::Wyrd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Wyrd
CPAN shell
perl -MCPAN -e shell install Apache::Wyrd
For more information on module installation, please visit the detailed CPAN module installation guide.