Oct 11 2017 02:15 AM
Hi
I've created an SPFx webpart and I'm struggling to add it to a group with a new name. I believe it's the preconfiguredEntries where I configure this. I've read the documentation here:
I tried the following:
"preconfiguredEntries": [{ "groupId": "<generated a new GUID>", "group": { "default": "<new group name>" }, ...
The above did not work.
Could someone please provide and example of creating a custom group name for the webpart? Also, should I expect the group name to be displayed, or is it just used for grouping webparts? Finally, if the group name is displayed, would I see it in the workbench?
Thanks.
Oct 17 2017 07:37 AM
Seven days and no one cares to respond?
I have followed the same steps as the OP with the same result. If anyone knows the answer, please share.
Nov 14 2017 12:22 AM
Unfortunately, I have the same issue over here.
I already tried the following things:
All of the above with the group property:
"group": { "default": "<new group name>" },
The 'docs.microsoft.com'-documentation seems to be clear, but it simply doesn't work:
groupId | string | yes | The group id determines which toolbox group will contain the web part. The SharePoint Framework reserves group ids for default groups. The developer can pick one of those groups. If a group id is specified, then the group property will be ignored. Alternatively, the developer can pick a completely unique id and a group name. The toolbox will then show the web part in its own group. | "groupId": "6737645a-4443-4210-a70e-e5e2a219133a" |
group | ILocalizedString | no | The name of the group in the toolbox in which the web part will be displayed. If no value is provided, then the web part will be displayed in the Custom group. | "group": { "default": "Content", "nl-nl": "Inhoud" } |
So it's definitely good to bring this topic under attention.
Nov 14 2017 01:32 AM
Hi @Alan Trafford,
Are you targeting modern or classic experience?
At the moment, the workbench does not group the web parts and all are listed under the "Featured" category/group I believe. A new web part picker may be coming soon to allow grouping.
Joel
Nov 14 2017 04:17 AM
Nov 14 2017 06:30 AM
When you open the web part picker on a modern page, do you see out-of-the-box web parts grouped into different groups?
Nov 14 2017 06:54 AM
I'm following you know...just quickly tried it on Office 365 workbench and had the same issues. It's either a bug, functionality yet to be released in the future (maybe for the new web part picker?), or the usage should be simpler or better documented
I would recommend that you search the issues list on the following GitHub repo and add a new entry if you can't find the issue there:
https://github.com/SharePoint/sp-dev-docs
There is a large number of items there so don't be surprised if it takes some days to get an answer back.
Nov 14 2017 07:14 AM
Solution@Alan Trafford, @Yannick Borghmans, @Lee Hoffner
Check out this YouTube video (starting time set to the correct moment) published some hours ago where you can confirm that this functionality is not yet available :)
Joel
Nov 14 2017 10:39 PM
Nov 20 2017 06:58 AM
Nov 20 2017 07:04 AM
Thanks for pointing me at the video. It's clear the functionality is not there yet.
Alan
Aug 23 2018 06:41 AM
Aug 15 2019 05:21 PM