Telerik UI for ASP。NET MVC?下载30天免费试用

项目

项目表示AppBar的内容。的项目configuration接受一个将在AppBar小部件中呈现的对象集合。开发者可以选择两种类型的道具:

内容项

使用的模板有两种方法内容项

  • 您可以使用模板ContentItem使用和渲染HTML。
  • 你可以提供kendo.template属性来配置TemplateId选择。下面的例子展示了如何使用它们:
@(Html.Kendo(). appbar (). name ("appbar") . themecolor (AppBarThemeColor.Inherit) . items (items=> {items. add()。模板("").Type(AppBarItemType.ContentItem); items.Add().TemplateId("search-template").Type(AppBarItemType.ContentItem); }) ) 

垫片

垫片可以使用Item轻松地将内容项彼此分开。

@ (Html.Kendo () .AppBar () . name(“appbar”). items(项目= > {items.Add()。模板("").Type(AppBarItemType.ContentItem); items.Add().Type(AppBarItemType.Spacer).Width("16px"); items.Add().Template("

AppBar Demo

").Type(AppBarItemType.ContentItem); }) )

另请参阅

在本文中
Baidu
map