Forum Discussion

Andrew McHargue's avatar
Andrew McHargue
Copper Contributor
Oct 29, 2018

Group ListView Command Set extension buttons under dropdown?

Following the walkthrough at 

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api#debugging-your-listview-command-set-using-gulp-serve-and-query-string-parameters

 

how can I group "Command 1" and "Command 2" under a parent button that functions as dropdown to show these two options?

 

This is similar but targets a different location: 

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-customize-lists-and-libraries#user-custom-actions

If there's a way to adapt this to ClientSideExtension.ListViewCommandSet.CommandBar , I am not seeing it.

 
Thanks for any insight.

2 Replies

  • Andrew McHargue's avatar
    Andrew McHargue
    Copper Contributor

    Fwiw I see this on user voice, but I am wondering if the user who posted this and I are missing something that can be done in the elements.xml or something else.

    https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/31785541-support-sub-menu-options-for-list-view-command-set