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::AddElement - Field to support repeatable javascript add

Attributes

           has_field 'add_element' => ( type => 'AddElement', repeatable => 'foo',
               value => 'Add another foo',
           );

   repeatable
       Requires the name of a Repeatable sibling field.

   value
       The value of the button that's rendered, 'Add Element' by default.

Author

       FormHandler Contributors - see HTML::FormHandler

Name

       HTML::FormHandler::Field::AddElement

Synopsis

       EXAMPLE field for rendering an AddElement field for doing javascript additions of repeatable elements.

       You probably want to make your own.

       The main requirements are that the button have 1) the 'add_element' class, 2) a 'data-rep-id' attribute
       that contains the id of the repeatable to which you want to add an element.

Version

       version 0.40068

See Also