All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mvysny.kaributesting.v23.SideNavUtils.kt Maven / Gradle / Ivy

The newest version!
package com.github.mvysny.kaributesting.v23

import com.github.mvysny.kaributesting.v10._expectEditableByUser
import com.github.mvysny.kaributools.navigateTo
import com.vaadin.flow.component.sidenav.SideNavItem
import com.vaadin.flow.router.NavigationTrigger

/**
 * Clicks this item, but only if it's enabled. The effect is that it navigates to the underlying
 * view or [SideNavItem.getPath].
 */
public fun SideNavItem._click(trigger: NavigationTrigger = NavigationTrigger.CLIENT_SIDE) {
    _expectEditableByUser()
    navigateTo(path, trigger)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy