Skip to content

navigation

milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.ui.components.navigation/Navigation

Navigation

[androidJvm]\

@Composable

fun Navigation(modifier: Modifier = Modifier, menuItems: List<MenuItem> = if (isEditMode()) listOf( MenuItem.MENU_ITEM_EXIT, MenuItem.MENU_ITEM_SETTINGS, MenuItem.MENU_ITEM_SEARCH ) else listOf(), modal: Boolean = isPortraitMode(), backgroundColor: Color = Color.Black.copy(alpha = 0.7f), navController: NavHostControllerEx = rememberNavControllerEx(menuItems), minPortraitMenuWidth: Dp = 4.dp, content: @Composable() -> Unit = { Page() })

Clone this wiki locally