Slickgrid - One-click checkboxes?

前端 未结 6 2166
慢半拍i
慢半拍i 2021-02-13 13:05

When I create a checkbox column (through use of formatters/editors) in Slickgrid, I\'ve noticed that it takes two clicks to interact with it (one to focus the cell, and one to i

6条回答
  •  爱一瞬间的悲伤
    2021-02-13 13:52

    Register a handler for the "onClick" event and make the changes to the data there. See http://mleibman.github.com/SlickGrid/examples/example7-events.html

    grid.onClick.subscribe(function(e, args) {
        var checkbox = $(e.target);
        // do stuff
    });
    

提交回复
热议问题