怎么去掉复选框的全不选,

怎么去掉复选框的全不选,但是全选要留着,不要全不选

FineReport KevinOne 发布于 2021-1-7 18:15
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共3回答
最佳回答
2
luojian0323Lv7资深互助
发布于2021-1-8 08:20(编辑于 2021-1-8 12:52)

加钱吗?

提这么个没实用又火急火燎的问题?image.png

下拉复选框编辑前事件:
$(".fr-checkbox-list.fr-combo-list div:first div span").text("全选")


最佳回答
0
snrtuemcLv8专家互助
发布于2021-1-8 08:26

最简单方案,把全选按钮不显示,默认为空就是全选就可以了啊

参考下拉框参数为空选择全部-https://help.fanruan.com/finereport/doc-view-2394.html

image.png

复选按钮组的话,这个勾不要选

image.png

取消下拉复选框全选
选择下拉复选框,然后选择事件,添加一个初始化事件,写一下js语句。
$.extend(FR.CheckBoxEditor.prototype,{
initControlPane:function(){
this.$controlPane = $("").addClass('fr-checkbox-control').css('display',"none");
}
}); 
或者
$.extend(FR.CheckBoxEditor.prototype,{
initControlPane:function(){
this.$controlPane = $("<div style='padding-right:20px'>").addClass('fr-checkbox-control').css('display',"none");
}
});


最佳回答
0
huyajunLv6初级互助
发布于2021-1-8 09:22

image.png这个为空的去掉,那么就必须选择一个

  • 4关注人数
  • 809浏览人数
  • 最后回答于:2021-1-8 12:52
    请选择关闭问题的原因
    确定 取消
    返回顶部