IconMenuItem

external class IconMenuItem : MenuItemBase(source)

An icon menu item inside a {@linkcode Menu} or {@linkcode Submenu} and usually contains an icon and a text.

Constructors

Link copied to clipboard
constructor(rid: Double, id: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val id: String

The id of this item.

Link copied to clipboard
Link copied to clipboard
val rid: Double

Functions

Link copied to clipboard

Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.

Link copied to clipboard

Returns whether this icon menu item is enabled or not.

Link copied to clipboard
fun setAccelerator(accelerator: String?): Promise<Void>

Sets the accelerator for this icon menu item.

Link copied to clipboard
fun setEnabled(enabled: Boolean): Promise<Void>

Sets whether this icon menu item is enabled or not.

Link copied to clipboard

Sets an icon for this icon menu item

Link copied to clipboard
fun setText(text: String): Promise<Void>

Sets the text for this icon menu item.

Link copied to clipboard

Returns the text of this icon menu item.