Tryng to build a custom ui element , which will display the rest api results in data table or data-list . Are there any examples to use nuxeo-resource(how to fetch api) and display same in results to display in data table

1 votes

1 answers

408 views

ANSWER

I've been wanting to do something similar, but haven't had time so it's in the backlog. If you get this working please share some of your results/code if possible. My concept was to have another tab for a document for the JSON results (such as "View" "Permissions" History" "Trash" "JSON"). This tab would likely be restricted based on permissions, but the view would appear similar to that given when using the "Nuxeo Dev Tools" Chrome extension for JSON output, but would be in Nuxeo as a tab. For some user groups this would be a great feature. Looking forward to your progress.
07/28/2021



Hello,

You should have a look to the sources of https://github.com/nuxeo/nuxeo-web-ui. In particular, you can read how search forms and search results are built here: https://github.com/nuxeo/nuxeo-web-ui/tree/master/elements/search and have an exemple on how we display children documents https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-results/nuxeo-document-content.html

Regards

0 votes