SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.02k forks source link

Please define customization options that are available / not available for custom SPFx ListView Command Set buttons #8784

Open yvesrosius opened 1 year ago

yvesrosius commented 1 year ago

Hi

Currently, there is some information missing about custom SPFx ListView Command Set buttons. Can you please add documentation for these?

Documentation to SPFx ListView Command Set: https://learn.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api

Questions I have:

Cheers Yves


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ghost commented 1 year ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

bcameron1231 commented 1 year ago

HI, I'm not fully understanding your questions. Could you clarify with a bit more information what you mean by these questions?

yvesrosius commented 1 year ago

Hi Beau

Sure.

I added an extra button using a SPFx ListView Command Set. This button appears in the top command bar when deployed as an app to the SharePoint site.

image

As the article describes, you can manage the different existing buttons on this bar. Example given, you could move the "New" button to position 2. Or you could hide the button to sync the library.

I would like to change the position of this custom button. But I do not have any documentation on this. If this is currently not supported, there is also no documentation stating this.

Cheers Yves

bcameron1231 commented 1 year ago

Hi! Thanks for clarifying. AFAIK, no, there is no way to change the position, and you can't use the Command Bar Props Customization (JSON) to re-order a custom list view command set button either.

yvesrosius commented 1 year ago

Hi Beau

Thanks for checking.

The position of the existing buttons, you can change with the "position" parameter. This works nicely.

Cheers Yves