【发布时间】:2016-06-17 02:39:53
【问题描述】:
我正在使用handsontable 从 Excel 中粘贴数据。我想向某些单元格添加更多信息,一个表示 CSS 类的字符串。我认为最好的方法是使用comments 插件。 在那里我看到了有关如何添加 cmets 的信息,但我没有看到如何读取 cmets。 当我尝试时:
hot1 = new Handsontable(container, {
data: getData(),
rowHeaders: true,
colHeaders: true,
contextMenu: true,
comments: true,
cell: [
{row: 1, col: 1, comment: 'Some comment'},
{row: 2, col: 2, comment: 'More comments'}
]
});
hot1.getData();
我只看到表格数据,没有任何关于 cmets 的信息。从文档看来,我可以访问特定单元格以获取它的 cmets,但如果我可以在一个命令中获取所有 cmets,则没有参考(类似于我获取数据的方式)。
你有什么想法吗?
【问题讨论】: