Call custom Javascript module function in template slot of oj-table
Summary
Is there a way to call custom Javascript module function in template slot of each row of oj-tableContent
Hi,
Is there a way to call custom Javascript module function in oj-bind-if or template slot of each row of oj-table
Scenario:
We need to show the url in table column only if End date is less than todays date. END date and Start dates will be present as table columns.
function showUrl(startDate, endDate){
if(Date.today().compareTo(Date.parse('date-string')) ){
return true;
}
else{
return false;
}
}
Example:
<div class="oj-flex">
<oj-table scroll-policy="loadMoreOnScroll" id="oj-table--2060600457-1" data="[[$page.variables.surveycListServiceDataProvider]]" columns="[{column-definitions-removed-for-understanding}]">
0