Greetings,
I am working on a custom experience page where I am using Tabulator to build a table view. I have altered my Workflow to include the data I would like to use within the Tabulator table, it is showing via the debugger under “working.roomdevices”
I have built a component with holds the required javascript to build the table and I am calling it out in the HTML as follows…
{{component ‘tabulator-room-devices’ @root.pageData.devices.working.roomdevices}}
Inside my javascript file, I am tring to reference the data as followed, but cannot get it working…
var tableData = '{{pageData.working.roomdevices}}';
var table = new Tabulator("#table-roomdevices", {
data:tableData,
columns:[
{title:"Device", field:'{{name}}', visible:true, hozAlign:"center", headerSort:false},
],
});
The table builds, but no data populates, any ideas where I am failing here?