NavLinkExtensionsShouldExpand(NavigationManager, IReadOnlyCollectionNavItem, NavLinkMatch, Int32) Method
Whether any of the specified navItems should be expanded.
Namespace: BlazorBootstrapAssembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static bool ShouldExpand(
NavigationManager navigationManager,
IReadOnlyCollection<NavItem>? navItems,
NavLinkMatch match,
int currentLevel = 0
)
- navigationManager NavigationManager
- Navigation Manager we're using.
- navItems IReadOnlyCollectionNavItem
- URL's to test against. Can be left empty.
- match NavLinkMatch
- The Navigation Link's behavior.
- currentLevel Int32 (Optional)
- How deep the method is in recursion; 16 is the max depth.
Boolean if
navItems's URL should be expanded.