开发者

Add custom buttons to SlickGrid?

开发者 https://www.devze.com 2023-02-04 15:02 出处:网络
Any easy API call开发者_运维百科s for adding custom button to SlickGrid in the header toolbar?

Any easy API call开发者_运维百科s for adding custom button to SlickGrid in the header toolbar?

Also, if you could comment how do I get rows, that were filtered or selected via checkboxes via such a button and do some magic and alter data would be welcome :)


For the answer to both questions, check the slick.checkboxselectcolumn.js plugin.

You can alter the column header with the grid.updateColumnHeader(myhtml) methods, where myhtmlis some html fragment (including buttons) that you want to insert to the header.

If you want to check the selected rows, just bind to the grid.onSelectedRowsChanged() event.

0

精彩评论

暂无评论...
验证码 换一张
取 消