一、效果

EasyUI之multiple多选框禁用某些项选中

二、方法

原始设置多选属性multiple:true

现在将其设置成一个函数multiple:checkMultile

    var checkMultile = function(node){
    var nodeType= = node.dataType; //获取第二颗树点击类型
    if(nodeType != 'school'){  //添加过滤条件
            return false;
        }else{
            return true;
        }
    };

 

相关文章:

  • 2021-04-26
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-20
  • 2021-04-21
  • 2021-05-18
  • 2021-05-26
  • 2021-11-02
相关资源
相似解决方案