Forum Discussion
Filipe Matos
Apr 16, 2020Copper Contributor
Limit the display of a command set to a specific list instance
Hi, According to this Microsoft article https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api on how to create command set extension, on...
- Apr 16, 2020Hi,
Yes, you can apply list view command set to a specific list/library.
Please refer this link which will be helpful -
https://social.technet.microsoft.com/wiki/contents/articles/52807.spfx-extension-apply-list-view-command-set-to-specific-list-or-library.aspx
I hope this helps.
Thanks.
SeanyC67
Jun 29, 2020Copper Contributor
Hi Filipe Matos - I think hardcoding the listname is not a great solution. Have a look here :-
https://www.c-sharpcorner.com/article/enabling-an-spfx-listview-command-set-on-a-specific-sharepoint-list/ where the dev uses the site property bag to enumerate the lists guids which will have the functionality.
Would be good if SpFx natively had more scoping options.
Filipe Matos
Jun 29, 2020Copper Contributor