天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 985|回复: 0

[常见问题] 视图隐藏第一列复选框

[复制链接]
Chain 发表于 2019-1-16 13:36:15 | 显示全部楼层 |阅读模式
第一种方式:写视图列脚本返回样式修改。

复选框隐藏.png
  1. (function(){
  2. var col ="<script>";
  3. col += "jQuery('#dataTable tr td input').each(function() {"
  4. col += "jQuery(this).parent().css('display','none'); "
  5. col += "});"
  6. col += "</script>";
  7. return col;
  8. })();
复制代码
效果:

复选框隐藏2.png

第二种方式:添加样式库,然后在视图中引用样式库即可。

首列001.png

首列002.png

首列003.png

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 11:28

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表