0
<nuxeo-data-table-column>
  [[item.title]]
</nuxeo-data-table-column>

This works. Here 'item.title' renders title.

<nuxeo-data-table-column>
 [[_callme(item)]]
</nuxeo-data-table-column>

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

This doesn't work. Here 'item' is an empty object

Where my I wrong ?

1 Answer 1

2

I end up fetching page provider manually and fed to 'items' property to 'nuxeo-data-table' which then works.

Template

<nuxeo-page-provider id="nxProvider">
  <nuxeo-data-table items="[[data.entries]]">
    <nuxeo-data-table-column>
      [[_callme(item)]]
    </nuxeo-data-table-column>
  </nuxeo-data-table>
</nuxeo-page-provider>

Script

 setIntialValue:function(){
            this.$.nxProvider.fetch().then(data=>{
               this.data = Object.assign({}, data);
             })
          }

 _callme: function (item) { console.log(item); } ->works
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.