bootstrap-table
bootstrap-table copied to clipboard
maybe the better multipleSelectRow?
Description
Coded my own "multipleSelectRow", because the native multipleSelectRow dont work as I expected. With native code, I only can add others with key event.
In my version, you hold shift and you can select multiple rows. after that also you can add other rows by simply adding it via click. no key needs to be hold.
My Example: https://live.bootstrap-table.com/code/s72817/15693 and to compare https://examples.bootstrap-table.com/#options/multiple-select-row.html
I don't think this is the better way we should handle multipleSelectRow
.
I guess it's already the common way, as example every explorer/finder works on the same way. Hold Shift to select multiple items and use ctrl to select some more items. Without using ctrl select only the one item.
What do you think @djhvscf @wenzhixin ?
I don't think this is the better way we should handle
multipleSelectRow
. I guess it's already the common way, as example every explorer/finder works on the same way. Hold Shift to select multiple items and use ctrl to select some more items. Without using ctrl select only the one item.What do you think @djhvscf @wenzhixin ?
I see benefits in having a multi select suggested by @s72817. In my case, front end users are having difficulties in using shift/control click all the time. Also if you wrongly forget control click, it removes all selected (maybe changed in newer versions). I see the given example solves this issue and empowers user friendlyness.
Maybe combine both of the powers to have control click as optional?