Tickit...::Item(3pm)

πŸ“¦ version 0.16, in alpine 3.24

✨ NAME ✨

okay so bestie, quick vibe check: the page header says Tickit...::Item(3pm) and this whole thing lives in the User Contributed Perl Documentation (that's the manual name, she's fancy πŸ’…). The bit that matters is Tickit::Widget::MenuItem β€” an item to display in a Tickit::Widget::Menu. πŸŽ€

🌸 tiny heads-up before you @ me: yes, NAME says Tickit::Widget::MenuItem and the constructor below says Tickit::Widget::Menu::Item. that's literally what's written on the page, so don't come for me β€” copy-paste exactly what's there and you'll be fine, fr fr. πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so objects in this class are displayed in menus. that's their whole main character energy. ✨

each item has a name and a callback to invoke when the menu option is clicked on. name + callback, that's the duo, that's the ship, that's the whole personality 🌈


πŸŽ€ CONSTRUCTOR πŸŽ€

🌟 new

$item = Tickit::Widget::Menu::Item->new( %args )

constructs a new Tickit::Widget::Menu::Item object. iconic. no cap, that's the entire job 🫢

it takes the following named arguments:

  • name => STRING β€” gives the name of the menu item. so like, the label she shows up wearing πŸ’–
  • on_activate => CODE β€” callback to invoke when the menu item is clicked on. this is the part where you click and ✨something happens✨ β€” go off, code ref, you got this πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Paul Evans <leonerd@leonerd.org.uk> β€” literally the icon who wrote this. we stan 🫢⭐


and that's the whole page, bestie, you ate that πŸ“ this was perl v5.42.2, dated 2026-02-15, from the fine folks at Tickit...::Item(3pm) β€” mwah πŸ’œβœ¨πŸ§š

πŸ“¦ where this page comes from