vue-good-table icon indicating copy to clipboard operation
vue-good-table copied to clipboard

Checkbox - Single result should not show a checkbox

Open epochslee opened this issue 4 years ago • 1 comments

Issue Type (delete the irrelevant ones)

  • [x] Question

Specs

What version are you using? 2.19.3

What browser? Chrome 90.0.4430.85 (Official Build) (x86_64)

Expected Behavior

What did you expect to happen? When there's only one result, checkbox should not show.

Actual Behavior

What actually happened? When there's only one result, a checkbox is available to click. Checkboxes should only be used in multiple selection cases.

epochslee avatar Apr 27 '21 17:04 epochslee

Hi, I'm not sure it should not be implemented in the lib as it is a specific behavior.

But you can easily do something like :select-options="{enabled: rows.length > 1}"

mp3000mp avatar Oct 02 '21 20:10 mp3000mp