Reuse share dialog like shareWithList in own app

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
35
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?

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.

thanks for the hint
unfortunately not working with VUE.
I will figure out. Calendar has a simpler implementation…