NAME
Form::Tiny::Inline - Form::Tiny with less hassle
SYNOPSIS
my $form = Form::Tiny::Inline->new(
field_defs => [
{name => 'some_field'},
...
],
);
DESCRIPTION
Inline forms are designed to cover all the basic use cases, but they are not as customizable and performant. Currently, they lack the ability to specify custom hooks, field filters and field validators. Furthermore, non-core plugins may be incompatible with inline forms.
METHODS
is
When ran on Form::Tiny::Inline
class, it produces a new object that you can call ->new
on.
my $inline_form_builder = Form::Tiny::Inline->is('Filtered', 'Strict');
my $form = $inline_form_builder->new(%params);
Arguments passed to is
are names of plugins that will be used in the inline form. Not all plugins may be compatible with inline forms.
Note: callng is
is not required, if you don't intend to use additional plugins.
new
Constructs a new object of Form::Tiny::Inline::Form
class. This class consumes Form::Tiny::Form, so refer to its interface for details.
my $form = Form::Tiny::Inline->new(%params);