之所以记录官网API,是因为本屌丝没有vpn,官网访问速度慢。不喜勿喷。
原官网api:https://handsontable.com/docs/7.4.2/HiddenColumns.html
插件允许隐藏某些列。通过呈现宽度设置为0px的列来实现隐藏。
该插件不修改源数据和不参与数据转换(返回数据的形状
由getData*
方法保持不变)。
可能的插件设置:
copyPasteEnabled
作为Boolean
(默认true
)columns
如Array
indicators
作为Boolean
(默认false
)
例
const container = document.getElementById('example');
const hot = new Handsontable(container, {
date: getData(),
hiddenColumns: {
copyPasteEnabled: true,
indicators: true,
columns: [1, 2, 5]
}
});