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 (将#修改为@)