With this definition added to my -bundle.html file in Designer
<nuxeo-results-view provider="sourcepp" headers="{ "translate-directoryEntry": "label"}" schemas="dublincore" search-name="sourcepp" auto="true" results="sources" name="sources"></nuxeo-results-view>
I get this exception
Uncaught TypeError: Cannot create property 'fetch-aggregate' on string '{ "translate-directoryEntry": "label"}' at HTMLElement._fetchAggregatesChanged (nuxeo-app.html-160.js:438) at Object.runObserverEffect [as fn] (nuxeo-app.html-13.js:197) at runEffectsForProperty (nuxeo-app.html-13.js:142) at runEffects (nuxeo-app.html-13.js:108) at HTMLElement._propertiesChanged (nuxeo-app.html-13.js:1692) at HTMLElement._flushProperties (nuxeo-app.html-10.js:327) at HTMLElement._flushProperties (nuxeo-app.html-13.js:1540) at HTMLElement.ready (nuxeo-app.html-13.js:1645) at HTMLElement.ready (nuxeo-app.html-15.js:540) at HTMLElement.ready (nuxeo-app.html-160.js:271)
At https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/search/nuxeo-results-view.html#L185 the "headers" property should be an Object, not a String to concatenate the new values to the "headers" property.
Same issue in 3.x where the element has moved to another repository: https://github.com/nuxeo/nuxeo-elements/blob/master/ui/search/nuxeo-results-view.js#L203
- is related to
-
ELEMENTS-1394 Fix "headers" property to use Object in "nuxeo-results-view" element
- Resolved
- Is referenced in