// 列属性类型
jspreadsheet(document.getElementById('myTable'), {
data:data,
columns: [
{ title:'Model', width:300, type:'text'; }, // 文本
{ title:'Price', width:80, type:'numeric' },// 数字
{ title:'Date', width:100, type:'calendar', options: { format:'DD/MM/YYYY' } },// 时间
{ title:'Photo', width:150, type:'image' },// 图片
{ title:'Condition', width:150, type:'dropdown', source:['New','Used'] },// 下拉选项
{ title:'Color', width:80, type:'color' },// 颜色
{ title:'Available', width:80, type:'checkbox' },// 复选框
]
});
jspreadsheet列属性
于 2022-03-17 09:36:56 首次发布