1HTML::FormHandler::FielUds:e:rAdCdoEnltermiebnutt(e3d)PHeTrMlL:D:oFcourmmeHnatnadtlieorn::Field::AddElement(3)
2
3
4
6 HTML::FormHandler::Field::AddElement - Field to support repeatable
7 javascript add
8
10 version 0.40068
11
13 EXAMPLE field for rendering an AddElement field for doing javascript
14 additions of repeatable elements.
15
16 You probably want to make your own.
17
18 The main requirements are that the button have 1) the 'add_element'
19 class, 2) a 'data-rep-id' attribute that contains the id of the
20 repeatable to which you want to add an element.
21
23 HTML::FormHandler::Field::AddElement
24
26 has_field 'add_element' => ( type => 'AddElement', repeatable => 'foo',
27 value => 'Add another foo',
28 );
29
30 repeatable
31 Requires the name of a Repeatable sibling field.
32
33 value
34 The value of the button that's rendered, 'Add Element' by default.
35
37 FormHandler Contributors - see HTML::FormHandler
38
40 This software is copyright (c) 2017 by Gerda Shank.
41
42 This is free software; you can redistribute it and/or modify it under
43 the same terms as the Perl 5 programming language system itself.
44
45
46
47perl v5.34.0 2021-0H7T-M2L2::FormHandler::Field::AddElement(3)