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

Disable checkbox of specific rows

Open alkama94 opened this issue 4 years ago • 10 comments

Issue Type (delete the irrelevant ones) Question

Specs version - 2.21.3

Browser - Chrome

Expected Behavior Can I disable checkbox of some rows based on a particular condition

alkama94 avatar May 03 '21 12:05 alkama94

Hi, you can add the property vgtDisabled in your rows data.

I hope this helps.

mp3000mp avatar May 18 '21 21:05 mp3000mp

vgtDisabled

I have added vgtDisabled attribute to the row but it still gives check and uncheck on that row. Help me :(

origin2821 avatar Jul 30 '21 01:07 origin2821

Hi, it's working fine for me. Do you have any repo where we could observe this ?

And maybe which browser you're using ?

mp3000mp avatar Oct 01 '21 17:10 mp3000mp

@mp3000mp Can you show your example with vgtDisabled, I have the same problem as @origin2821

gustavocaspirro-mb avatar Nov 12 '21 17:11 gustavocaspirro-mb

It works for me too. Makes the Checkbox Disabled, but SELECT all checkbox still marks it as SELECTED.

That's a BUG I would stay.

I don't think there is a row attribute to make it NOT selectable by any means.

Example were vgtDisabled works, but is still selected when we use selectAll: https://jsfiddle.net/4wt7oudg/

julius-spudvilas avatar Nov 24 '21 09:11 julius-spudvilas

vgtDisabled (but vgtSelected works) does not work also for me

vahramaghabalyan avatar Apr 30 '22 16:04 vahramaghabalyan

It seems vgtDisabled is not working. Did anyone else find a fix?

jaymoh avatar Jan 16 '23 16:01 jaymoh

vgtDisabled is not working

Spermadonor avatar Apr 09 '23 20:04 Spermadonor

Additionally, if you set the property vgtDisabled: true, even though the checkbox is disabled, if you click outside the checkbox but inside its containing cell the checkbox will still be able to select or deselect. When will you solve this?

GoldenGladier avatar Mar 20 '24 17:03 GoldenGladier