bootstrap-table icon indicating copy to clipboard operation
bootstrap-table copied to clipboard

mulitiselect without CTRL key (tablet o smartphone)

Open carles9000 opened this issue 5 years ago • 7 comments
trafficstars

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

carles9000 avatar Oct 19 '20 11:10 carles9000

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 ?

UtechtDustin avatar Oct 19 '20 11:10 UtechtDustin

Hi UtechDustin,

Every time you select a row, you invert the value of the select. (toggled)

Regards. Carles

carles9000 avatar Oct 19 '20 11:10 carles9000

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.

UtechtDustin avatar Oct 19 '20 12:10 UtechtDustin

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

carles9000 avatar Oct 19 '20 16:10 carles9000

When it will be emplemented?

AlexByte avatar Jan 31 '22 10:01 AlexByte

As soon we have some time and a good solution for this. But feel free to help us out with a PR :)

UtechtDustin avatar Jan 31 '22 10:01 UtechtDustin