Skip to content

Commit

Permalink
add disabled Dropdown sample to IDE sample
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Morgillo <[email protected]>
  • Loading branch information
hamen committed Nov 6, 2024
1 parent bf911c3 commit fe46f83
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ private fun RowScope.ColumnOne() {
) {
Text("Selected item $selectedItem")
}
Dropdown(
enabled = false,
menuContent = {
selectableItem(selectedItem == 0, onClick = { selectedItem = 0 }) { Text("Hello") }

separator()

selectableItem(selectedItem == 1, onClick = { selectedItem = 1 }) { Text("World") }
}
) {
Text("Selected item $selectedItem")
}

Row(horizontalArrangement = Arrangement.spacedBy(16.dp), verticalAlignment = Alignment.CenterVertically) {
var clicks1 by remember { mutableIntStateOf(0) }
Expand Down

0 comments on commit fe46f83

Please sign in to comment.