cancel
Showing results for 
Search instead for 
Did you mean: 

Item inside <nuxeo-data-table-column> send to a function as an argument yields empty object

dipesh_kc
Champ on-the-rise
Champ on-the-rise
<nuxeo-data-table-column>
  [[item.title]]
</nuxeo-data-table-column>

This works. 'item.title' renders title.

<nuxeo-data-table-column>
{{_callme(item)}}
</nuxeo-data-table-column>

_callme: function (item) {
console.log(item);
}

** This doesn't work. item is empty object**

Where my I wrong ?

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

I don't really know: do you have tried with [[_callme(item)]] instead? Can you post all the code to investigate?

The best approach for debugging Web UI is to use the browser extension with break points (see practical use cases in https://university.nuxeo.com/learn/course/external/view/elearning/83/dev-tools

Regards

I have tried with both [[_callme(item)]] and {{_callme(item)}} with no success. I end up fetching page provider manually and fed to 'items' property to 'nuxeo-data-table' which then works