Ok... so I cannot use coach view inside the columns of Service Data Table... it's sad... I have to return the html to be rendered by that column.
I will return a html with an anchor tag and I would like to call a function that was written inside Inline Javascript section...
After declare my function as:
this.myFunction = function () { alert("teste"); }
I have tried to set the onclick of my anchor tag to this function but I've received "myFunction is not defined" message.
Do you know how could I call it?
------------------------------
Ranieri Mazili
------------------------------
Original Message:
Sent: Mon July 27, 2020 10:46 AM
From: Stephen Perez
Subject: How to render custom components on Service Data Table
Hi Ranieri,
The Service Data Table has an On Custom Cell event that allows you to return an HTML element. You will need to review the cell context variable passed to the event. For instance, there is cell.index property to determine which column is being operated on to have various custom cell types. To get the data from the row, use cell.row.data.
------------------------------
Stephen Perez
Original Message:
Sent: Mon July 27, 2020 10:06 AM
From: Ranieri Mazili
Subject: How to render custom components on Service Data Table
Hello,
I'm using Service Data Table to render my data. One of the columns is a custom coach view that need to receive two option variables (name and url).
By default, Service Data Table renders all as output text so I changed this column to be rendered as "custom", but when I do it all the content for this column goes blank.
Is there a way to pass custom data (as options variable) to each column/row using Service Data Table?
Thanks
------------------------------
Ranieri Mazili
------------------------------