禁用多选? [英] Disable multi select?

查看:65
本文介绍了禁用多选?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以禁用多选?

推荐答案

我知道这是一个老问题,但是现在对Slickgrid的更新允许您在网格选项中禁用multiSelect:

I know this is an old question, but updates to Slickgrid now allow you to disable multiSelect in the grid options:

var options = {
            editable: false,
            enableCellNavigation: true,
            asyncEditorLoading: false,
            multiSelect: false
        };

使用此选项,在按住Ctrl或Shift的同时单击不会执行任何操作,并且不希望您无法通过Ctrl +单击取消选择单元格,或者再次单击选定的单元格

With this option, clicking while holding a ctrl or shift does nothing, and undesirably, you cannot deselect a cell with ctrl + click, or clicking the selected cell again

这篇关于禁用多选?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆