CheckMenuItem

A check menu item inside a {@linkcode Menu} or {@linkcode Submenu} and usually contains a text and a check mark or a similar toggle that corresponds to a checked and unchecked states.

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
fun close(): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>

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
fun isChecked(): ERROR CLASS: Symbol not found for js.promise.Promise<kotlin/Boolean>

Returns whether this check menu item is checked or not.

Link copied to clipboard
fun isEnabled(): ERROR CLASS: Symbol not found for js.promise.Promise<kotlin/Boolean>

Returns whether this check menu item is enabled or not.

Link copied to clipboard
fun setAccelerator(accelerator: String?): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>

Sets the accelerator for this check menu item.

Link copied to clipboard
fun setChecked(checked: Boolean): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>

Sets whether this check menu item is checked or not.

Link copied to clipboard
fun setEnabled(enabled: Boolean): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>

Sets whether this check menu item is enabled or not.

Link copied to clipboard
fun setText(text: String): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>

Sets the text for this check menu item.

Link copied to clipboard
fun text(): ERROR CLASS: Symbol not found for js.promise.Promise<kotlin/String>

Returns the text of this check menu item.