HTML::FormHandler::Field::AddElement(3pm)

HTML::FormHandler::Field::AddElement3pm

Field to support repeatable javascript add

Usage

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

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–11
  4. 12–13

Author

FormHandler Contributors - see HTML::FormHandler

From libhtml-formhandler-perl 0.40068-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.