NAME
Chandra::Table - Sortable, filterable, paginated data grid component
SYNOPSIS
use Chandra::Table;
my $table = Chandra::Table->new(
columns => [
{ key => 'name', label => 'Name', sortable => 1 },
{ key => 'email', label => 'Email', sortable => 1 },
{ key => 'role', label => 'Role', filterable => 1,
filter_options => [qw(admin user guest)] },
],
data => \@users,
page_size => 10,
selectable => 'multi',
on_row_click => sub { my ($row) = @_; print $row->{name} },
);
$app->css(Chandra::Table->css);
$table->mount($app, '#content');
DESCRIPTION
Chandra::Table is a Chandra::Component subclass providing a data grid. Renders using Chandra::Element for proper event wiring.