bootstrap-table
bootstrap-table copied to clipboard
mulitiselect without CTRL key (tablet o smartphone)
Hello,
I've seen this multiselect example ( https://examples.bootstrap-table.com/#options/multiple-select-row.html#view-source) , but if you use it with a tablet or smartphone, how can you without holding the ctrl or shift key?
Thanks. Carles
I dont think there is a way to select multiple checkboxes at once on a "mobile device". You have to check one checkbox after the other. I guess i nevered used that "feature" on other apps, how other apps solve that issue ?
Hi UtechDustin,
Every time you select a row, you invert the value of the select. (toggled)
Regards. Carles
Yea thats because of the multi-select-row option, as workaround you have to disable that feature or disable it only for none pc users.
Without that feature you can check one by one.
But we should definitely improve that feature.
UtechDustin,
Maybe you can do this changes. line 6011
` }).off('mousedown').on('mousedown', function (e) {
// https://github.com/jquery/jquery/issues/1741
_this9.multipleSelectRowCtrlKey = e.ctrlKey || e.metaKey || IsMobile() || IsTablet();
_this9.multipleSelectRowShiftKey = e.shiftKey;
});`
Where IsMobile() or IsTablet() could a function of you. It's only a suggest...
(You can test it with this change -> _this9.multipleSelectRowCtrlKey = e.ctrlKey || e.metaKey || true; )
Thanks. Carles
When it will be emplemented?
As soon we have some time and a good solution for this. But feel free to help us out with a PR :)