Rello
October 23, 2019, 9:15pm
1
Hello,
I need to implement a sharing in my new app.
I would like to not start from scratch and reuse exisiting like the one in files
I will need to connect to my own share-logic as I am not based on files.
But is there any reusability here? Like the contact drop-down or so?
Rello
October 24, 2019, 8:54am
2
the filling of the dropdown is going via this API
/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=**a**&perPage=200&itemType=principals
For the frontend, you might want to have a look at our vue multiselect component: https://nextcloud-vue-components.netlify.com/#/Components/Multiselect?id=avatarselectoption We have a predefined user layout there that should help you to wire up a sharing dialog pretty easily.
Rello
October 24, 2019, 10:35am
4
thanks for the hint
unfortunately not working with VUE.
I will figure out. Calendar has a simpler implementation…