You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Call custom Javascript module function in template slot of oj-table

edited Nov 23, 2018 8:45AM in Visual Builder 3 comments

Summary

Is there a way to call custom Javascript module function in template slot of each row of oj-table

Content

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}]">

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!