0
Siyeza created
how do I pass this parameter
listAction: { ajaxFunction: _contactsService.getContactsByPolicyHolderId, inputFilter: function () { return { policyHolderId: 2 }; } },
SEE THE ERROR below

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
You could do:
<a class="example" data-contact-id="2"></a>listAction: { ajaxFunction: _contactsService.getContactsByPolicyHolderId, inputFilter: function () { return { id: $(".example").attr("data-contact-id") }; } },The returned data can then be evaluated in the column render function:
{ targets: 0, data: null, orderable: false, render: function (data) { return data; } },Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)