toggle menu
ui
1.0.0-SNAPSHOT
jvm
switch theme
search in API
ui
/
org.jetbrains.jewel.ui.component
/
MenuScope
Menu
Scope
interface
MenuScope
Members
Members & Extensions
Functions
items
Link copied to clipboard
fun
MenuScope
.
items
(
count
:
Int
,
isSelected
:
(
Int
)
->
Boolean
,
onItemClick
:
(
Int
)
->
Unit
,
content
:
@
Composable
(
Int
)
->
Unit
)
fun
<
T
>
MenuScope
.
items
(
items
:
List
<
T
>
,
isSelected
:
(
T
)
->
Boolean
,
onItemClick
:
(
T
)
->
Unit
,
content
:
@
Composable
(
T
)
->
Unit
)
passive
Item
Link copied to clipboard
abstract
fun
passiveItem
(
content
:
@
Composable
(
)
->
Unit
)
selectable
Item
Link copied to clipboard
abstract
fun
selectableItem
(
selected
:
Boolean
,
iconKey
:
IconKey
?
=
null
,
iconClass
:
Class
<
*
>
?
=
iconKey?.let { it::class.java }
,
keybinding
:
Set
<
String
>
?
=
null
,
onClick
:
(
)
->
Unit
,
enabled
:
Boolean
=
true
,
content
:
@
Composable
(
)
->
Unit
)
separator
Link copied to clipboard
fun
MenuScope
.
separator
(
)
submenu
Link copied to clipboard
abstract
fun
submenu
(
enabled
:
Boolean
=
true
,
iconResource
:
String
?
=
null
,
iconClass
:
Class
<
*
>
=
this::class.java
,
submenu
:
MenuScope
.
(
)
->
Unit
,
content
:
@
Composable
(
)
->
Unit
)