最佳答案
为了避免通过鼠标点击单元格来切换复选框,您可以使用 CSS 属性pointer-events。
我已将样式 hide-checkbox 添加到网格中,然后使用以下 css 隐藏复选框并防止点击事件 (Vaadin 7):
.v-grid-hide-checkbox th .v-grid-select-all-checkbox {
display: none;
}
.v-grid-hide-checkbox th:first-child {
pointer-events: none;
}
关于java - 瓦丁网格 : How to remove select/deselect checkbox in header?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38773157/