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.
Properties
Name | Type | Description | Notes | Default Value | |
---|---|---|---|---|---|
ClientIDMode | ClientIDMode | Gets or sets the client ID generation algorithm. |
attribute
static value
|
Static | |
CloseBehavior | DropDownCloseBehavior | Gets or sets the dropdown closing behavior. Possible values are `Default`, `Inside`, `Outside` and `Manual`. |
attribute
static value
|
Default | |
Content | List<DotvvmControl> | Gets or sets the content placed inside the control. |
inner element
static value
|
null | |
DataContext | Object | Gets or sets a data context for the control and its children. All value and command bindings are evaluated in context of this value. The DataContext is null in client-side templates. |
attribute
bindable
|
null | |
DataSource | IValueBinding<IEnumerable<Object>> | Gets or sets the data source for the items in the dropdown menu. |
attribute
bindable
|
null | |
DropDirection | DropDirection | Gets or sets the direction in which the dropdown menu should open. |
attribute
static value
|
DropDown | |
Enabled | Boolean | Gets or sets a button disabled state. |
attribute
static value
bindable
|
True | |
FontType | ButtonTextColor | Gets or sets the font color for button toggle. |
attribute
static value
bindable
|
Default | |
ID | String | Gets or sets the control client ID within its naming container. |
attribute
static value
bindable
|
null | |
IncludeInPage | Boolean | Gets or sets whether the control is included in the DOM of the page. |
attribute
bindable
|
True | |
IsCollapsed | IValueBinding<Boolean> | Gets or sets whether the dropdown menu is collapsed or expanded. |
attribute
bindable
|
null | |
IsSplitButton | Boolean | Gets or sets whether the dropdown button should be a split button. |
attribute
static value
|
False | |
ItemEnabled | Boolean | Gets or sets whether the individual items in the dropdown menu should be enabled or disabled when DataSource is set. |
attribute
static value
bindable
|
True | |
ItemNavigateUrl | String | Gets or sets the URL to navigate to when an item in the dropdown menu is clicked when DataSource is set. |
attribute
static value
bindable
|
null | |
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
static value
|
null | |
Items | List<IDropDownItem> | Gets or sets the items inside the control. |
inner element
static value
default
|
null | |
ItemSelected | Boolean | Gets or sets whether an individual item in the dropdown menu is selected when DataSource is set. |
attribute
static value
bindable
|
null | |
ItemTemplate | ITemplate | Gets or sets the template to use for rendering each item in the dropdown menu when DataSource is set. |
inner element
static value
|
null | |
ItemText | String | Gets or sets the text to display for each item in the dropdown menu when DataSource is set. |
attribute
static value
bindable
|
null | |
ItemUrlSuffix | String | Gets or sets a suffix to append to the URL of each item in the dropdown menu when DataSource is set. |
attribute
static value
bindable
|
null | |
Size | Size | Gets or sets the size of the dropdown button toggle. |
attribute
static value
bindable
|
Default | |
SplitButtonMenuAlignment | SplitButtonMenuAlignment | Gets or sets whether the toggle menu should be displayed next to a button or next to an arrow. |
attribute
static value
|
AlignWithArrow | |
Text | String | Gets or sets the text to display on the dropdown button. |
attribute
static value
bindable
|
null | |
ToggleType | DropDownType | Gets or sets the toggle button type. Possible values are the `Button` or `Link`. |
attribute
static value
|
Button | |
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
static value
bindable
|
Primary | |
Visible | Boolean | Gets or sets whether the control is visible. When set to false, `style="display: none"` will be added to this control. |
attribute
static value
bindable
|
True | |
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
static value
|
SolidFill |
Events
Name | Type | Description | |
---|---|---|---|
Click | ICommandBinding | Gets or sets the command that will be triggered when the dropdown button is clicked. | |
ItemClick | ICommandBinding | Gets or sets the command that will be triggered when individual items in the dropdown menu are clicked and DataSource is set. |