【问题标题】:Webix Filemanager add Custom stacked Font Awesome IconWebix Filemanager 添加自定义堆叠字体真棒图标
【发布时间】:2016-02-11 13:31:25
【问题描述】:

如何在 webix FileManager 中添加自定义图标:

How to add customized icons for webix FileManager.

trying below code, but not working:

 templateIcon: function (obj, common) {                    
                    return "<span class='webix_icon webix_fmanager_icon fa-stack fa-lg'><i class='webix_icon webix_fmanager_icon fa fa-folder fa-stack-2x'></i><i class='webix_icon webix_fmanager_icon fa fa-lock fa-stack-1x'></i></span>";
                },

我需要在某些情况下添加堆叠图标,如下所示: `在此输入代码

【问题讨论】:

  • 我需要在某些情况下添加堆叠图标,如下所示: 'code' ' '

标签: icons font-awesome nsfilemanager webix


【解决方案1】:

您的 templateIcon 似乎有效。你在 FileManager 配置中定义了吗:

webix.ui({
   view:"filemanager",
   id:"files",
   templateIcon: function (obj, common) {
       return ...
   }
});

并且此函数可以根据项目类型定义不同的图标。 templateicon 函数的第一个参数是数据项。因此,您可以检查项目的“类型”属性返回相应的结果。

【讨论】:

    猜你喜欢
    • 2012-07-10
    • 2018-05-07
    • 2014-07-25
    • 2014-10-18
    • 1970-01-01
    • 2021-11-18
    • 2016-06-04
    • 1970-01-01
    • 2021-04-30
    相关资源
    最近更新 更多