面向ASP的Telerik UI。NET MVC免费下载30天试用版

项目

面向ASP的Telerik UI。NET MVCDropDownButtonprovides a various set of options for its项目

下面的示例演示如何配置DropDownButton项。

@(Html.Kendo().DropDownButton() . name ("DropDownButton") . icon("剪贴板"). items (items => {items. add (). id ("keep-text")Text("Keep Text Only").Icon("clipboard-text");items.Add () .Id(“paste-html”)。Text("粘贴为HTML").Icon("clipboard-code").Hidden(true);items.Add () .Id(“paste-markdown”)。文本(“粘贴减价”).Icon (clipboard-markdown) .Enabled(假);items.Add () .Id(“最爱的”)。Text("标记为收藏").ImageUrl(Url.Content("~/content/shared/icons/16/star.png"));}))

另请参阅

在本文中
Baidu
map