logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::FormHandler::Field::RmElement - field to support repeatable javascript remove

Attributes

           has_field 'rm_element' => ( type => 'RmElement',
               value => 'Remove',
           );

Author

       FormHandler Contributors - see HTML::FormHandler

Name

       HTML::FormHandler::Field::RmElement

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.

Version

       version 0.40068

See Also