gpt4 book ai didi

slickgrid - tab 时光滑的网格跳过列

转载 作者:行者123 更新时间:2023-12-01 11:48:26 24 4
gpt4 key购买 nike

有什么方法可以防止用户在使用平滑网格时通过 tab 键浏览特定列?

我希望选项卡跳转一个只读列,其中两边的其他列都有编辑器。

最佳答案

在列的选项中使用属性 'focusable'。 documentation说:

When set to false, clicking on a cell in this column will not select the row for that cell. The cells in this column will also be skipped during tab navigation.

列定义如下所示:

var columns = [
{ id: "EditableCulumn", name: "Editable", field: "Name", editor: Slick.Editors.Text }
, { id: "ReadOnlyColumn", name: "ReadOnly", field: "ID", focusable: false }
]

关于slickgrid - tab 时光滑的网格跳过列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13765239/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com