MobileListViewItemBuilder
Methods
Items(System.Action)
Builds nested MobileListView items.
Parameters
action - System.Action<MobileListViewItemFactory>
Action for declaratively building MobileListView items.
Example
@( Html.Kendo().MobileListViewView()
.Name("View")
.Items(items =>
{
items.Add().Text("Master Item")
.Items(masterItem =>
{
masterItem.Add().Text("Inner Item 1");
masterItem.Add().Text("Inner Item 2");
});
})
.Render();
)
Text(System.String)
Sets the text of the item.
Parameters
value - System.String
Sets the text of the item.
HtmlAttributes(System.Collections.Generic.IDictionary)
Sets the HTML attributes.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The HTML attributes.
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
Content(System.Action)
Sets the HTML content which the item should display.
Parameters
value - System.Action
The action which renders the item content.
Example
@( Html.Kendo().MobileListViewView()
.Name("View")
.Items(items =>
{
items.Add().Content(() =>
{
)
<strong> Item Content </strong>
(
});
})
.Render();
)
Content(System.Func)
Sets the HTML content which the item should display.
Parameters
value - System.Func<Object,Object>
The content wrapped in a regular HTML tag or text tag (Razor syntax).
Example
@(Html.Kendo().MobileListView()
.Name("View")
.Items(items =>
{
items.Add().Content(
@<text>
Some text
<strong> Item Content </strong>
</text>
)
})
)
Icon(System.String)
The icon of the link item. It can be either one of the built-in icons, or a custom one.
Parameters
value - System.String
The value that configures the icon.