Search code examples
javascriptvisual-studio-2015office365sharepoint-onlinesharepoint-apps

Customize ECB menu of Sharepoint hosted add-in


How could I hide some menu items from a ECB menu in a Sharepoint add-in, based on permissions? My Sharepoint application is Sharepoint hosted not provider hosted, so the javascript injection method wouldn't work.

Thanks


Solution

  • thank you for your help. Finally I've got what I wanted to customize in my page. I've overriden the CreateMenuOption in core.js by creating another file (I've used Chrome to get the code). I've used the following js file too : https://spservices.codeplex.com/ in order to get the group of the connected user.