HTML::FormHandler::Field::RmElement - field to support repeatable javascript remove
version 0.40059
EXAMPLE field for rendering an RmElement field for doing javascript removals of repeatable elements.
You probably want to make your own.
The main requirements are that the button have 1) the 'rm_element' class, 2) a 'data-rep-elem-id' attribute that contains the id of the repeatable instance that you want to remove ($self->parent->id).
$self->parent->id
This field should be a subfield of the Repeatable, probably either first or last.
HTML::FormHandler::Field::RmElement
has_field 'rm_element' => ( type => 'RmElement', value => 'Remove', );
FormHandler Contributors - see HTML::FormHandler
This software is copyright (c) 2014 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HTML::FormHandler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FormHandler
CPAN shell
perl -MCPAN -e shell install HTML::FormHandler
For more information on module installation, please visit the detailed CPAN module installation guide.