table of contents
HTML::FormHandler::Field::RmElement(3) | User Contributed Perl Documentation | HTML::FormHandler::Field::RmElement(3) |
NAME¶
HTML::FormHandler::Field::RmElement - field to support repeatable javascript remove
VERSION¶
version 0.40068
SYNOPSIS¶
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").
This field should be a subfield of the Repeatable, probably either first or last.
NAME¶
HTML::FormHandler::Field::RmElement
ATTRIBUTES¶
has_field 'rm_element' => ( type => 'RmElement', value => 'Remove', );
AUTHOR¶
FormHandler Contributors - see HTML::FormHandler
COPYRIGHT AND LICENSE¶
This software is copyright (c) 2017 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.
2017-07-21 | perl v5.40.0 |