Handsontable 增加行 header 宽度
Handsontable increase row header width
我正在使用 自定义行 header 名称,其中一个恰好比其他的长一点。
rowHeaders: ["Entree", "", "Plat", "", "Dessert", "", "Prix 2", "Prix 3"]
我的问题是如何增加row header width
?
不幸的是,我已经彻底检查了文档。
我试过在 options
中使用 colWidths: 200
,但这只适用于行 header 宽度以外的所有内容。
选项文档 here。
您可以使用 css 列来设置宽度:
.handsontable col.rowHeader {
width: 180px;
}
这里是 working example of your case。如果您删除 css,您将遇到您所面临的确切问题。如果您重新添加 css 行,您将看到它有效。
干杯。
在JS中创建table时可以添加参数
new Handsontable(container, {
// ...
rowHeaderWidth: 180,
// ...
})
我正在使用 自定义行 header 名称,其中一个恰好比其他的长一点。
rowHeaders: ["Entree", "", "Plat", "", "Dessert", "", "Prix 2", "Prix 3"]
我的问题是如何增加row header width
?
不幸的是,我已经彻底检查了文档。
我试过在 options
中使用 colWidths: 200
,但这只适用于行 header 宽度以外的所有内容。
选项文档 here。
您可以使用 css 列来设置宽度:
.handsontable col.rowHeader {
width: 180px;
}
这里是 working example of your case。如果您删除 css,您将遇到您所面临的确切问题。如果您重新添加 css 行,您将看到它有效。
干杯。
在JS中创建table时可以添加参数
new Handsontable(container, {
// ...
rowHeaderWidth: 180,
// ...
})