07-16-2020 06:12 PM
Has anyone development or know of a better method of display array data instead to the standard nuxeo-data-table
that gets generated in a layout, specifically for view-layouts?
I have a few fields that are arrays that users can enter data into (instead of selecting from a directory). Studio creates nuxeo-data-tables
for these types of fields, but the design/css for them take up a lot of space. I tried modifying some of the styes and made some progress, but it isn't ideal. It would be more ideal to list the values in the array similar to nuxeo-directory-suggestion
, but I can't just utilize that because it creates errors when new data is added to the array. Just looking for a better way to do this without taking up a lot of screen space.
Here are some examples of live vs the idea of changing the layout.
07-20-2020 05:43 PM
Hello,
In document layout, you could do whatever you need by looping every value:
<template is="dom-repeat" items="[[document.properties.MYPREFIX:MYPROPERTY]]" as="property">
// Whatever needed like <nuxeo-tag>[[formatDirectory(property)]]</nuxeo-tag>
</template>
The fixed height issue is identified by the Nuxeo team.
Regards
07-16-2020 06:14 PM
Also forgot to add, that I'm not sure how to address complex fields with multiple fields, but it would be nice to have them take up less space also.
07-20-2020 05:43 PM
Hello,
In document layout, you could do whatever you need by looping every value:
<template is="dom-repeat" items="[[document.properties.MYPREFIX:MYPROPERTY]]" as="property">
// Whatever needed like <nuxeo-tag>[[formatDirectory(property)]]</nuxeo-tag>
</template>
The fixed height issue is identified by the Nuxeo team.
Regards
07-21-2020 01:31 AM
Thanks for the suggestion, I'll will try this out.
07-21-2020 11:36 AM
This worked great, thanks so much! (This might be a better default approach when metadata layouts get generated instead of using the nuxeo-data-table—could be a suggestion for the Studio team.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.