rxDataTable icon indicating copy to clipboard operation
rxDataTable copied to clipboard

"checkAll" column config property

Open Droogans opened this issue 11 years ago • 3 comments

When I include a table column config such as the following:

{
        "checkbox": true,
        "checkAll": true
}

I expect the checkbox in the sort column to check/uncheck each row's checkbox.

Currently, it doesn't.

Droogans avatar Jan 28 '14 20:01 Droogans

I think, since I haven't used too much of the check box functionality, I want to refactor the approach on it. Maybe make the checkbox attribute an object like the editable attribute. Thoughts @Droogans?

Maybe something like:

"checkbox" {
  "action": function (row) {...},
  "checkAll": function () {...} // Or a value of true and it will run the action function on each checked row
}

stephengolub avatar Jan 29 '14 04:01 stephengolub

All I can think is that I don't want to bind my checking to an immediate function. I want some other button on my page to iterate over all checked items, and do x to it.

So, given that, it'd be nice if checkboxes didn't have functions bound to them, they would simply check and do nothing. Same goes for checkAll.

Droogans avatar Jan 29 '14 14:01 Droogans

Yea, so I think that putting the configuration for that function, however, would still be in the column declaration.

But definitely make things so that there's a bulk-editing mode or somethinng.

stephengolub avatar Jan 29 '14 14:01 stephengolub