I want to create share option in document library, that to for respective folders? So that share option helps me to share documents from one department to other department. Please help me to implement this.
Did you check the documentation on this topic?
Adding new actions to the Document Library | Alfresco Documentation
actionGroups declaration is where you decide if your action is for documents and/or folders
I want to create share option for folders not documents
Did you noticed folder-browse and folder-details actionGroups on documentation? You can find some examples on Share source code
share/share-documentlibrary-config.xml at develop · Alfresco/share · GitHub
Retrieving data ...