NAME

Mojolicious::Plugin::DevexpressHelpers::Helpers

VERSION

version 1.151250

SUBROUTINES/METHODS

out

Output string in template

out '<div id="'.$id.'"></div>';

new

Internal usage.

my $dxHelper = Mojolicous::Plugin::DevexpressHelpers::Helpers->new;
$c->stash( dxHelper => $dxHelper );

add_binding

Internal usage.

$dxHelper->add_binding($binding, [$binding2,...] );

next_id

Internal usage.

my $next_id_number = $dxHelper->next_id;

new_id

Internal usage.

my $new_id = $dxHelper->new_id;

dxbind

Internal usage.

dxbind( $c, 'dxButton' => $id => $attrs, \@extensions);

Produce a div tag with an computed id, which will be binded to a dxButton with $attrs attributs at call to dxbuild

parse_attributs

Internal usage

my $attrs = parse_attributs( $c, \@implicit_arguments, @attributs )

dxbutton $text, $onclick || \%options

%= dxbutton 'My button' => '/some/url'

%= dxbutton 'My button' => q{ function (){ alert('onClick!'); } }

%= dxbutton 'My button' => q{ function (){ alert('onClick!'); } }, { type => 'danger', icon => 'user' }

dxdatagrid [ $datasource, ] \%opts

%= dxdatagrid '/products.json'

%= dxdatagrid '/products.json', { columns => [qw( name description price )] }

dxbuild

Build the binding between jQuery and divs generated by plugin helpers such as dxbutton. It is should to be called in your template just before you close the body tag.

<body>
	...
	%= dxbuild
</body>

AUTHOR

Nicolas Georges <xlat@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Nicolas Georges.

This is free software, licensed under:

The MIT (X11) License