e Data::Dump qw( dump );
use MRO::Compat;
use mro "c3";
use base qw( Class::Accessor::Fast );
use JSON::XS ();
use Scalar::Util qw( blessed );
use CatalystX::CRUD::YUI::Serializer;
our $VERSION = '0.
An arrayref of column hashrefs. YUI LiveGrid API requires these.
=item url
The url for fetching JSON results.
=item show_related_values
A hashref of foreign key information.
=item col_filter
An
$field_name ),
sortable => ( $isa_field || $isa_chain )
? JSON::XS::true()
: JSON::XS::false(),
sort_prefix =>
( $form->metadata->sort
talystX::CRUD view
=head1 SYNOPSIS
use CatalystX::CRUD::YUI::TT;
# in a template
[% foo.as_json %]
[% foo.dump_data %]
[% foo.dump_stderr %]
[% SET foo = 1;
foo.increment; # foo == 2
base 'Class::Accessor::Fast';
use MRO::Compat;
use mro "c3";
use Scalar::Util qw( blessed );
use JSON::XS ();
use Data::Dump qw( dump );
__PACKAGE__->mk_accessors(qw( datetime_format yui html_escape
RIPTION
CatalystX::CRUD::YUI::Serializer turns objects into hashrefs,
typically for rendering as JSON.
=head1 METHODS
Only new or overridden method are documented here.
=cut
=head2 new
Instanti
default_view => 'YUI',
fmt_to_view_map => {
'html' => 'YUI',
'json' => 'YUI',
'xls' => 'Excel',
},
);
our $VERSION = '0.031';
=head1 NAME
CatalystX:
default_view => 'YUI',
fmt_to_view_map => {
'html' => 'YUI',
'json' => 'YUI',
'xls' => 'Excel',
},
);
1;
=head1 DESCRIPTION
This is a base cont
}
}
return $self;
}
=head2 json_mime
Returns JSON MIME type. Default is 'application/json; charset=utf-8'.
=cut
sub json_mime {'application/json; charset=utf-8'}
=head2 default
Redir