Closed Tunous closed 5 years ago
Adds a way to specify for each item whether clicking on it should dismiss the popup or keep it visible. It can be specified by setting the dismissOnSelect property.
dismissOnSelect
val popupMenu = popupMenu { section { /* ... */ item { label = "Stay open when clicked" dismissOnSelect = false callback = { Toast.makeText(this@LightActivity, "Clicked!", Toast.LENGTH_SHORT).show() } } } }
Adds a way to specify for each item whether clicking on it should dismiss the popup or keep it visible. It can be specified by setting the
dismissOnSelect
property.Example