Version:
1.0 | 1.1 | 2.0

ListItem

in namespace DotVVM.Framework.Controls.Bootstrap

Represents a single item in Bootstrap lists and menus.

Properties

Name Type Description Notes Default Value
property icon Attributes Dictionary<String,Object>
attribute
inner element
static value
bindable
default
property icon ClientIDMode ClientIDMode Gets or sets the client ID generation algorithm.
attribute
inner element
static value
bindable
default
Static
property icon 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.
attribute
inner element
static value
bindable
default
property icon ID String Gets or sets the unique control ID.
attribute
inner element
static value
bindable
default
property icon InnerText String Gets or sets the inner text of the HTML element.
attribute
inner element
static value
bindable
default
property icon IsDisabled Boolean Gets or sets whether this item is disabled.
attribute
inner element
static value
bindable
default
False
property icon IsSelected Boolean Gets or sets whether this item is selected.
attribute
inner element
static value
bindable
default
False
property icon NavigateUrl String Gets or sets the URL of the item hyperlink.
attribute
inner element
static value
bindable
default
property icon RouteName String Gets or sets the name of the route for the item hyperlink.
attribute
inner element
static value
bindable
default
property icon Text String Gets or sets the text of the item.
attribute
inner element
static value
bindable
default
property icon UrlSuffix String Gets or sets the suffix that will be appended to the generated URL.
attribute
inner element
static value
bindable
default
property icon Visible Boolean Gets or sets whether the control is visible.
attribute
inner element
static value
bindable
default
True

Events

Name Type Description
event icon Click Action Gets or sets the command that will be triggered when the button is clicked.

Usage & Scenarios

Represents a single item in Bootstrap lists and menus.

This control is used inside several Bootstrap controls - e.g. the Breadcrumb and NavigationBar controls.

In the ListGroup control, you have to use the ListGroupItem control.

If you set the NavigateUrl property or you use the RouteName and Param-* properties, the item behaves like a hyperlink. For more information about RouteName properties see the RouteLink control - the usage is the same.

If you set the Click command, the specified method in the viewmodel will be triggered.

Remember that you cannot use those two features together.

HTML Rendered by the Control

Suggestions

Help & Contribute

The documentation is maintained on GitHub.
We'll be happy if you edit the page and create a pull request.

Edit on Github

Send message