cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate View for Array Data instead of nuxeo-data-table?

Phil_Ludlow
Star Contributor
Star Contributor

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. Live Code Alternate Idea

1 ACCEPTED ANSWER

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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

View answer in original post

4 REPLIES 4

Phil_Ludlow
Star Contributor
Star Contributor

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.

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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

Thanks for the suggestion, I'll will try this out.

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.

Getting started

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.