1HTML::FormHandler::BlocUksse(r3)Contributed Perl DocumenHtTaMtLi:o:nFormHandler::Blocks(3)
2
3
4

NAME

6       HTML::FormHandler::Blocks - arrange form layout using blocks
7

VERSION

9       version 0.40068
10

SYNOPSIS

12       This is a role which provides the ability to render your form in
13       arbitrary 'blocks', instead of by fields. This role is included by
14       default in HTML::FormHandler.
15
16           package MyApp::Form;
17           use HTML::FormHandler::Moose;
18           extends 'HTML::FormHandler';
19
20           sub build_render_list {[ 'foo', 'fset' ]}
21           has_field 'foo';
22           has_field 'bar';
23           has_field 'nox';
24           has_block 'fset' => ( tag => 'fieldset', render_list => ['bar', 'nox'] );;
25           ....
26           $form->render;
27
28       Blocks live in the HTML::FormHandler::Widget::Block:: namespace. The
29       default, non-typed block is HTML::FormHandler::Widget::Block. Provide a
30       type for custom blocks:
31
32           has_block 'my_block' => ( type => 'CustomBlock', render_list => [...] );
33
34       You can also build blocks with a 'block_list' attribute, or the builder
35       for it, 'build_block_list'.
36
37       Rendering with blocks is supported by the rendering widgets.
38       Render::Simple doesn't do it, though it would be possible to make your
39       own custom renderer.
40

AUTHOR

42       FormHandler Contributors - see HTML::FormHandler
43
45       This software is copyright (c) 2017 by Gerda Shank.
46
47       This is free software; you can redistribute it and/or modify it under
48       the same terms as the Perl 5 programming language system itself.
49
50
51
52perl v5.30.0                      2019-07-26      HTML::FormHandler::Blocks(3)
Impressum