I've tried this other solution for lists, and it also works for document libraries but it doesn't add the menu that I need.

This is the menu that gets added:

enter image description here

And this is the one I need to add:

enter image description here

有帮助吗?

解决方案

Rather than using ListItemMenu and ListItemMenuAllowed, try CalloutMenu and CalloutMenuAllowed.

许可以下: CC-BY-SA归因
scroll top