微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Fullcalendar-Sheduler-如何在第二个resourceAreaColumn上添加图标/ html

如何解决Fullcalendar-Sheduler-如何在第二个resourceAreaColumn上添加图标/ html

iam使用fullcalendar-scheduler-5.3.0。

我的事件和资源来自json网址:

resources: {
    url: "content/exe/json_load_bm_ressourcen_v2.PHP"
  },

资源区域定义:

resourceAreaColumns: [
    {
      headerContent: 'Betriebsmittel',field: 'title',width: 360
    },{
      headerContent: '',field: 'status',width: 40,cellDidMount: function(arg) {
        var resource = arg.resource;

        arg.el.addEventListener('click',function() {         
          
          res_id = resource.id.substring(0,1); 
          var parentId = arg.resource._resource.parentId;
          dep_id = parentId;            
          console.log(dep_id);

          if(res_id != 'd'){
            console.log('User RES ID ' + res_id);
            console.log('User RESOURCE ID ' + resource.id);
            //edit_wpl(resource.id);          
          }
        });
      }
    }
  ],

示例:

[{ 
"id": "d1","sort_id":"1","title": "Leitern/ Gerüste","children": [
{
    "id": "374","title": "Alu-Klappgerüst,Günzburger ","status": "<i class='fal fa-fw fa-times-circle text-danger'></i>","datum_anfang":"1602453600"
  }
]}]

我想在资源列表的第二行中显示“状态”字段中的图标。 但是我只能在此字段中获得清晰的html。

有什么建议吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。