Package 

Class CascadeKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit CascadeDropdownMenu(Boolean expanded, Function0<Unit> onDismissRequest, Modifier modifier, DpOffset offset, Dp fixedWidth, Dp shadowElevation, PopupProperties properties, CascadeState state, Shape shape, Function1<CascadeColumnScope, Unit> content) Material Design dropdown menu with support for nested menus.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • CascadeDropdownMenu

        @Composable() final static Unit CascadeDropdownMenu(Boolean expanded, Function0<Unit> onDismissRequest, Modifier modifier, DpOffset offset, Dp fixedWidth, Dp shadowElevation, PopupProperties properties, CascadeState state, Shape shape, Function1<CascadeColumnScope, Unit> content)

        Material Design dropdown menu with support for nested menus. See DropdownMenu for documentation about its parameters.

        Example usage:

        var expanded by rememberSaveable { mutableStateOf(false) }
        
        CascadeDropdownMenu(
          expanded = expanded,
          onDismissRequest = { expanded = false }
        ) {
          DropdownMenuItem(
            text = { Text("Horizon") },
            children = {
              DropdownMenuItem(
                text = { Text("Zero Dawn") },
                onClick = { … }
              )
              DropdownMenuItem(
                text = { Text("Forbidden West") },
                onClick = { … }
              )
            }
          )
        }
        Parameters:
        fixedWidth - A width that will be shared by all nested menus.
        shadowElevation - A value between 0dp and 8dp.