Form::...:price(3pm)

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

πŸ’Έ Embperl::Form::Control::price β€” the whole vibe ✨

okay bestie, listen. This is the manpage Form::...:price(3pm) from the User Contributed Perl Documentation, and it's literally the glow-up your Embperl form needed: a price input control, with an optional unit chillin' right there inside it. πŸŽ€


🌸 NAME 🌸

Embperl::Form::Control::price β€” a price input control with optional unit inside an Embperl Form πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the whole lewk, verbatim, no edits:

  {
  type => 'price',
  text => 'blabla',
  name => 'foo',
  unit => 'sec',
  }

✨ DESCRIPTION ✨

So what does it do, bestie? It creates a price input control inside an Embperl Form. It will format the number as a money ammount πŸ’° (yes, "ammount", that's the original spelling, we don't touch the text fr fr). And optionally? It can display a unit after the input field. Iconic. πŸ‘‘

Wanna know how to specify parameters in general? Go see Embperl::Form. That's the main character. 🌈

🫢 PARAMETER 🫢

type

Needs to be 'price'. That's the whole requirement. No notes. πŸ’…

name

Specifies the name of the control. Name her. She deserves it. ✨

text

Will be used as label for the numeric input control. It's giving ✨label energy✨.

size

Gives the size in characters. (Default: 10)

maxlength

Gives the maximun length in characters. (That's the original spelling again β€” maximun β€” we keep the facts exactly as they are, no cap. 🧚)

unit

Gives a string that should be displayed right of the input field. (Default: ) β€” yes, empty. Nothing. A little void. πŸ•³οΈ

use_comma

If set, the decimal character is a comma instead of a point. (Default: on) πŸ“


πŸ‘‘ Author πŸ‘‘

G. Richter (richter at embperl dot org) β€” thank you for your service, king πŸ«‘πŸ’œ


πŸ’œ See Also πŸ’œ


lowkey reminder: those three references above are the actual SEE ALSO list, character for character. iykyk. πŸ”₯

and that's the whole page, bestie πŸŽ€ this was perl v5.34.0, dated 2022-02-06, and honestly? she ate. periodt. πŸ’…βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from