InputGroupDropDown

in namespace DotVVM.Bootstrap5.Controls

Extends the DropDown control for usage in InputGroup.

Usage & Scenarios

A special version of the DropDown control that can be used in InputGroup.

See DropDown for more info on how to use this control.

https://getbootstrap.com/docs/5.2/forms/input-group/

Properties

Name Type Description Notes Default Value
property icon CloseBehavior DropDownCloseBehavior Gets or sets the dropdown closing behavior. Possible values are `Default`, `Inside`, `Outside` and `Manual`.
attribute
inner element
static value
bindable
default
Default
property icon Content List<DotvvmControl> Gets or sets the content placed inside the control.
attribute
inner element
static value
bindable
default
null
property icon DataSource IValueBinding<IEnumerable<Object>> Gets or sets the data source for the items in the dropdown menu.
attribute
inner element
static value
bindable
default
null
property icon DropDirection DropDirection Gets or sets the direction in which the dropdown menu should open.
attribute
inner element
static value
bindable
default
DropDown
property icon Enabled Boolean Gets or sets a button disabled state.
attribute
inner element
static value
bindable
default
True
property icon FontType ButtonTextColor Gets or sets the font color for button toggle.
attribute
inner element
static value
bindable
default
Default
property icon IsCollapsed IValueBinding<Boolean> Gets or sets whether the dropdown menu is collapsed or expanded.
attribute
inner element
static value
bindable
default
null
property icon IsSplitButton Boolean Gets or sets whether the dropdown button should be a split button.
attribute
inner element
static value
bindable
default
False
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
property icon Size Size Gets or sets the size of the dropdown button toggle.
attribute
inner element
static value
bindable
default
Default
property icon SplitButtonMenuAlignment SplitButtonMenuAlignment Gets or sets whether the toggle menu should be displayed next to a button or next to an arrow.
attribute
inner element
static value
bindable
default
AlignWithArrow
property icon Text String Gets or sets the text to display on the dropdown button.
attribute
inner element
static value
bindable
default
null
property icon ToggleType DropDownType Gets or sets the toggle button type. Possible values are the `Button` or `Link`.
attribute
inner element
static value
bindable
default
Button
property icon Type ButtonType Gets or sets the command that will be triggered when individual items in the dropdown menu are clicked and DataSource is set.
attribute
inner element
static value
bindable
default
Primary
property icon Visible Boolean Gets or sets whether the control is visible. When set to false, `style="display: none"` will be added to this control.
attribute
inner element
static value
bindable
default
True
property icon VisualStyle ButtonVisualStyle Gets or sets the command that will be triggered when individual items in the dropdown menu are clicked and DataSource is set.
attribute
inner element
static value
bindable
default
SolidFill

Events

Name Type Description
event icon Click ICommandBinding Gets or sets the command that will be triggered when the dropdown button is clicked.
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