面向ASP的Telerik UI。网络核心免费下载30天试用版

使用字体图标

工具栏使您能够使用FontAwesome图标就像雪碧的图标一样。

使用FontAwesome图标作为工具栏精灵图标,添加_Layout.cshtml文件。

在REPL中打开下面的示例

@(Html.Kendo(). toolbar (). name ("toolbar") . items (items => {items. add (). type (CommandType.Button))。文本(“纸飞机”)。SpriteCssClass(“fas fa-paper-plane”);items.Add () .Type (CommandType.Button)。text(“平面”)。SpriteCssClass(“歧视fa-plane”);items.Add () .Type (CommandType.Button)。文本(“航天飞机”)。SpriteCssClass(“fas fa-space-shuttle”);})) 
         
          
         
        改进这篇文章
      
Baidu
map