NAME
Mojolicious::Plugin::DataTables::SSP::Params - DataTables SSP Params Helper
SYNOPSIS
# Mojolicious
$self->plugin('DataTables');
# Mojolicious::Lite
plugin 'DataTables';
[...]
my $dt_params = $c->datatable->ssp_params(
[
{
label => 'UID',
db => 'uid',
dt => 0,
formatter => sub {
my ($value, $column) = @_;
return '<a href="/user/' . $value . '">' . $value . '</a>';
}
},
{
label => 'e-Mail',
db => 'mail',
dt => 1,
},
{
label => 'Status',
db => 'status',
dt => 2,
},
]
));
DESCRIPTION
Mojolicious::Plugin::DataTables::SSP::Params is a Mojolicious plugin to add DataTables SSP (Server-Side Protocol) support in your Mojolicious application.
CONTRUCTOR
Mojolicious::Plugin::DataTables::SSP::Params->new ( @options )
Create a new instance of Mojolicious::Plugin::DataTables::SSP::Params class.
Options:
METHODS
Mojolicious::Plugin::DataTables::SSP::Params implements the following methods.
columns
draw
length
order
search
columns
timestamp
start
SEE ALSO
Mojolicious, Mojolicious::Guides, https://mojolicious.org, Mojolicious::Plugin::DataTables, Mojolicious::Plugin::DataTables::SSP::Results.