Form::...l::tabs(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

✨ NAME ✨

Embperl::Form::Control::tabs β€” a tab control that lives inside an Embperl Form πŸ’…

(and yeah, the page header is Form::...l::tabs(3pm) β€” that's just this doc, bestie, abbreviated for the shelf πŸŽ€)


πŸ¦‹ SYNOPSIS πŸ¦‹

            Embperl::Form -> add_tabs (
                [
                    {
                    text => 'First Tab',
                    fields => [
                              ...
                              ]
                    },
                    {
                    text => 'Second Tab',
                    fields => [
                              ...
                              ]
                    }
                ])

🌸 DESCRIPTION 🌸

Okay so this control? It puts tabs at the top of your form and handles the switching between the sub forms. It's giving wizardry, it's giving multi-step, it's giving organized. ✨

Heads up though: the switching is done by Javascript, so it can only be used in an environment where Javascript is available. No JS, no tabs, that's just the vibe. πŸ’€

You can use the method Embperl::Form -> add_tabs to set up a tabbed form. See Embperl::Form for how to specify parameters β€” that's where the deets live, go look, iykyk. πŸ“–

πŸŽ€ PARAMETER πŸŽ€

  • text β€” the text that will be displayed on the tab. That's it, that's the label, the little name tag of your tab, its whole identity. πŸ‘‘
  • fields β€” the list of fields that should be displayed in this subform. You give it in the same form as form Embperl::Form. So like, same shape, same energy, just living inside one tab instead of the whole page. 🫢

πŸ’– Author πŸ’–

G. Richter (richter at embperl dot org) β€” thank you for your service, icon. πŸ™βœ¨


🌈 See Also 🌈

the whole squad, fr fr πŸ‘―


and that's the page, bestie!! this doc came to you courtesy of perl v5.34.0, dated 2022-02-06, filed under Form::...l::tabs(3pm) β€” slay, bye, go build something cute πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from