The list of items is empty when using the slot RESULTS_ACTION
Hello, I added my component in the RESULTS_ACTIONS slot-content like the following :
<nuxeo-slot-content name="exportPublicationAction" slot="RESULTS_ACTIONS">
<template>
<my-component items="{{items}}" selected-items="{{selectedItems}}"></my-component>
</template>
</nuxeo-slot-content>
When testing I will have an empty list of items if I do not select any items.
Any idea please.
0 votes
1 answers
832 views
Gregory Carlin
Hello, can you detail a bit more what you're trying to do and add more context? Thx
09/01/2020
Ahmad Ben Maallem
Hello, thank you for your reply, I will need to add a button in the RESULTS_ACTIONS slot. the click on this button (even if no document is selected from the list of the result) allows to launch a processing (for example update of a metadata) of all the documents of the list of the result.
09/01/2020
Then I would take the example of the CSV export which basically have the same behavior:
thanks again, The csv export uses a provider page but I don't know how I can retrieve the list of documents from the provider page passed in parameter. Otherwise with the use of the "items" and "selected-items" parameters, I can easily retrieve the two lists if I select at least one element of the result but the problem will occur if I select nothing.
09/01/2020