To add custom button to ribbon we will need to do below
things:-
1.
Create SharePoint Empty Project.
2.
Add new “Empty Element”.
3.
Map
Layout folder.
4.
Add One JS file to Layout folder.
5.
Add Application Page to same folder.
6.
Crete 2 logo images
Look
at below solution Structure:-
Output:-
Custom
button will be enabled only when item is selected:-
Code:-


