Back to Slint

MenuItem

ui-libraries/material/docs/src/content/collections/structs/MenuItem.md

1.16.1349 B
Original Source

MenuItem

This structure represents a MenuItem with an icon, text, trailing text, and enabled state.

  • icon (image): The icon to display in the item.
  • text (string): The text to display in the item.
  • trailing_text (string): The trailing text to display in the item.
  • enabled (bool): Whether the item is enabled.