I have a following data in a List,
From the following data I will create the native lightning datatable and it looks like follows
0: {Name: "Test Contact 2", Person__c: "a0j4E00000BY96GQAT"}
1: {Name: "Test Contact 1", Person__c: "a0j4E00000BY96GQAT"}
Afterwards I just selected the Contacts which I need to generate the Requests and when I click the Button the datatable will looks like below,
In the above datatable I'll need to disable the Test Contact 2 row to select because its status is Pending.
According to the above data I'll need to show those data in a datatable in a lightning component. What I need here is in that datatable I'll need to disable a particular row according to the record status__c field.
Is it possible in datatable? I couldn't find any place to refer it.
For a workaround I just hide the checkbox column if all records status are Pending and I used a Trigger to avoid creating the pending request again to a particular Contact and according to the results I did something to achieve what I need. But its very easy If we have a way to disable row wise.
<lightning:dataTable>
component, and if so what does your markup look like? Could you edit your question to add some more details?