-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.0.21
-
Fix Version/s: None
-
Component/s: Web UI
-
Tags:
When using a <nuxeo-slot-content> in the RESULTS_ACTIONS slot for a Collection view, the document property remains uninitialized (observed to be an empty object {}).
For collection views, Web UI uses the <nuxeo-collection-view-layout> element. This element does have the Collection in its document property.
However, <nuxeo-collection-view-layout> contains a <nuxeo-default-results>, which does not have the document property, so the Collection document cannot be pass on.
<nuxeo-default-results> in turn contains <nuxeo-results> for displaying the contained documents. Since <nuxeo-default-results> does not have a document property, the document in <nuxeo-results> remains uninitialized as an empty object.
It would ease configuring e.g. checking that the document is a Collection, if the document property was available in the action context of the nuxeo slot.
This is an internal enhancement request. It was encountered while working on the internal Hyland Marketing DAM project when enabling the spreadsheet button in Collection views. It will likely be useful for client implementations in the future.