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 myhtml
is 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.
精彩评论