NavBarDropDown

in namespace DotVVM.Bootstrap5.Controls

Represents a dropdown button in the navigation control.

Usage & Scenarios

Represents a drop down button in NavBarSection.

https://getbootstrap.com/docs/5.2/components/navbar/

Properties

Name Type Description Notes Default Value
property icon DataSource IValueBinding<IEnumerable<Object>> Gets or sets a data-source object from which the child controls will be generated.
attribute
inner element
static value
bindable
default
null
property icon Enabled Boolean Gets or sets whether the toggle button is enabled or disabled.
attribute
inner element
static value
bindable
default
True
property icon HeaderTemplate ITemplate Gets or sets a custom template for the dropdown button.
attribute
inner element
static value
bindable
default
null
property icon HeaderText String Gets or sets a plain text for the dropdown button.
attribute
inner element
static value
bindable
default
null
property icon ItemEnabled Boolean Gets or sets whether the individual items in the dropdown menu should be enabled or disabled when DataSource is set.
attribute
inner element
static value
bindable
default
True
property icon ItemNavigateUrl String Gets or sets the URL to navigate to when an item in the dropdown menu is clicked when DataSource is set.
attribute
inner element
static value
bindable
default
null
property icon ItemRouteName String Gets or sets the route name to navigate to when an item in the dropdown menu is clicked when DataSource is set.
attribute
inner element
static value
bindable
default
null
property icon Items List<IDropDownItem> Gets or sets the items inside the control.
attribute
inner element
static value
bindable
default
null
property icon ItemSelected Boolean Gets or sets whether an individual item in the dropdown menu is selected when DataSource is set.
attribute
inner element
static value
bindable
default
null
property icon ItemTemplate ITemplate Gets or sets the template to use for rendering each item in the dropdown menu when DataSource is set.
attribute
inner element
static value
bindable
default
null
property icon ItemText String Gets or sets the text to display for each item in the dropdown menu when DataSource is set.
attribute
inner element
static value
bindable
default
null
property icon ItemUrlSuffix String Gets or sets a suffix to append to the URL of each item in the dropdown menu when DataSource is set.
attribute
inner element
static value
bindable
default
null

Events

Name Type Description
event icon ItemClick ICommandBinding Gets or sets the command that will be triggered when individual items in the dropdown menu are clicked and DataSource is set.

HTML produced by the control