当前路径: 星河码客 » 插件特效 » 可编辑器的table表格js插件

可编辑器的table表格js插件

仿电子表格JavaScript库,可用于添加/删除/编辑/显示数据表就像电子表格中的数据。添加一个表格const example = Spreadsheet('#example'); example.createSpreadsheet( { bank: 'text', 'cash ($)': 'number', 'credit debt ($)': 'number', 'investment portfolio ($)': 'number', city: 'text', 'dated opened': 'date', }, { // configs here } );添加数据 { data: [ ['TD', '10000', '1000000', '34535', 'Toronto', '2021-04-06'], ['RBC', '50000', '325345', '76868', 'Markham', '2020-06-22'], ['AmEx', '10000000', '5644', '76054', 'New York City', '2020-07-06'], ], }指定行数rowCount: 4本地存储persistent: true提交回调方法submitCallback: (tableArray) => alert(`Your table is currently ${tableArray.length} rows long!`), }添加颜色example.addCellStyle(cellValue, color); // 或者 example.addCellStyleSheet({ cellValue1: color1, cellValue2: color2, // ... })

可编辑器的table表格js插件

在线演示        积分下载        6毛下载        砍两刀下载       

文件目录······
暂无数据
 猜你喜欢 更多»
 工具推荐 更多»