⌂
›
Reference
›
PopupMenuItem
PopupMenuItem
PopupMenuItem control. Build it with the popup_menu_item helper.
Example
popup_menu_item(
content: text("PopupMenuItem"),
icon: "add",
checked: true,
expand: true,
on_click: ->(event) {}
)
Properties
checked— Whether the control is checked.content— The single child control rendered inside this control.icon— Icon name shown by the control.label_text_style— Label text style.mouse_cursor— Cursor shown when hovering the control.padding— Inner spacing between the border and the content.
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_click— Fired when the control is clicked/tapped.
Reference
- Family:
materials - Widget type:
popupmenuitem - Helper:
popup_menu_item