表格列自定义显示隐藏 (Table column custo
快速使用(Quick use)https://github.com/chaorenzeng/TableCustom.js.git
1.引入TableCustom.css和TableCustom.js
<link rel="stylesheet" type="text/css" href="js/TableCustom/TableCustom.css" /> ... <script src="js/TableCustom/TableCustom.js" type="text/javascript" charset="utf-8"></script>
2.指定表格Id 配置按钮Id (Specify the table Id configuration button Id)
<table id="myTable">...</table> ... <button type="button" id="myBtn">TableConfiguration</button>
3.创建TableCustom对象 (Create TableCustom objects)
方式一:默认方式(type1: default mode)var tabelCustom = new TableCustom({ btnId: 'myBtn', //列表配置项按钮Id tableId: 'myTable' //列表配置表格Id }) 方式二:分类方式(type2: classification mode)
var tabelCustom = new TableCustom({ btnId: 'myBtn', //列表配置项按钮Id tableId: 'myTable', //列表配置表格Id template: 'byCategory' }) 支持参数(Support parameters)
可选参数 Parameter | 默认值 Default | 说明 Introduce |
---|---|---|
btnId | 按钮ID (Button ID) | |
tableId | 表格ID (Table ID) | |
title | Table Configuration | 弹窗标题 (Popup Win title) |
btnAllTxt | all | 全选按钮文字 (Select all button text) |
btnReverseTxt | reverse | 反选按钮文字 (Uncheck button text) |
btnSaveTxt | save | 保存按钮文字 (Save button text) |
tipTxt | 弹窗底部说明 (Bottom description) | |
template | 模板 (The template) |
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。