HTML::...lement(3pm)

πŸ“¦
version 0.40068 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

okay bestie, welcome to the HTML::...lement(3pm) page from the User Contributed Perl Documentation πŸ’– the module we're talking about is HTML::FormHandler::Field::AddElement, and yes we are gonna make it make sense ✨

πŸ¦‹ NAME πŸ¦‹

HTML::FormHandler::Field::AddElement β€” the official one-liner is: Field to support repeatable javascript add. that's the whole vibe 🫢

🌸 VERSION 🌸

this one is version 0.40068 πŸ’…

✨ SYNOPSIS ✨

this is an EXAMPLE field for rendering an AddElement field for doing javascript additions of repeatable elements πŸ”₯

you probably want to make your own πŸ‘‘ no cap.

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

that's the whole checklist, bestie πŸŽ€

πŸ‘‘ NAME πŸ‘‘

HTML::FormHandler::Field::AddElement β€” yup, that's the name, iconic as ever πŸ’–

πŸŽ€ ATTRIBUTES πŸŽ€

here's the example setup in code form, keep it exact bestie:

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

πŸ’… repeatable

requires the name of a Repeatable sibling field. literally that's the requirement πŸ¦‹

πŸ“ value

the value of the button that's rendered, and it's 'Add Element' by default ⭐

🫢 AUTHOR 🫢

FormHandler Contributors - see HTML::FormHandler πŸ’œ

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 🌈


mwah πŸ’‹ this page is HTML::...lement(3pm) from perl v5.34.0, dated 2022-03-25 β€” slay and goodbye bestie πŸ’…βœ¨

πŸ“¦ where this page comes from