How to implement the table row selection functionality with checkbox in alpha?

Hi @Sam,

How to implement the checkbox for table row selection in alpha platform?

@Sam @Simphiwe @Shamnad_KS @shas please help

Hi @GeethaNagarajan

Can you refer to the link below, it should assist you.

How to Display Members List with Checkbox and Action Column in Alpha - Community - Neutrinos

2 Likes

Okay, let me check. Thanks

1 Like

I checked, but there is an annotation in the code for designing custom code. How can we put this annotations and all in the custom code?

1 Like

Hi @GeethaNagarajan,

Let me check it out, will get back to you.

1 Like

Okay Thankyou. Please let me know, once will get an idea. Thanks again.

1 Like

Hi @GeethaNagarajan,

I Have checked it out and I didn’t see any annotations from my side.

You just need to toggle the Enable Checkbox and bind your table data.
Add an On checkbox select trigger and a custom code then console log params, you will get an object like the one below when the On Checkbox Select event is triggered.

{
“eventDetail”: {
“selectedItems”: [
{
“name”: “SIM”,
“surname”: “NENE”,
“isCheckboxSelected”: true
}
],
“isAnyCheckboxSelected”: true,
“isAllVisibleCheckboxSelected”: false,
“isAllCheckboxSelected”: false
},
“context”: {},
“triggerEvent”: {
“selectedItems”: [
{
“name”: “SIM”,
“surname”: “NENE”,
“isCheckboxSelected”: true
}
],
“isAnyCheckboxSelected”: true,
“isAllVisibleCheckboxSelected”: false,
“isAllCheckboxSelected”: false
}
}

Not sure if that answers your questions if it doesn’t, please elaborate.

1 Like

@GeethaNagarajan is this sorted ?