ge Mojolicious::Plugin::DataTables;
use Mojo::Base 'Mojolicious::Plugin';
use Mojo::JSON qw(decode_json encode_json true false);
use Mojo::Collection;
use Mojo::DOM::HTML;
use Mojo::ByteStream;
use M
DO
if ($debug) {
$log->debug("Query: $stmt");
$log->debug( "Bind: " . encode_json \@bind );
}
my $query = $sql->db->query( $stmt, @bind );
my @results = ();
whi
$log->debug( "Bind Total: " . encode_json \@bind_total );
$log->debug("Query Filtered: $stmt_filter");
$log->debug( "Bind Filtered: " . encode_json \@bind_filter );
}
my $tota
s;
use Mojo::Base -base;
use Mojo::JSON qw(encode_json);
our $VERSION = '2.01';
has 'draw';
has 'records_total';
has 'records_filtered';
has 'data';
sub TO_JSON {
my ($self) = @_;
return
lugin('DataTables');
# Mojolicious::Lite
plugin 'DataTables';
[...]
$c->render(json => $c->datatable->ssp_results(
draw => 1,
data => \@resul
wing methods.
=head2 draw
=head2 records_total
=head2 records_filtered
=head2 data
=head2 TO_JSON
=head1 SEE ALSO
L<Mojolicious>, L<Mojolicious::Guides>, L<https://mojolicious.org>, L<Mojolici