Skip to content

commandBarCustomization: keys from updated documentation do not work after update to SP Lists interface (hiding commands, renaming commands) #10198

Open
@roeladams21

Description

@roeladams21

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

Declarative list formatting

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version: all latest version

Describe the bug / error

  1. there's at least one error/typo in the documentation about the commandBarCustomization keys btw: it should be 'UploadCommand' instead of 'uploadCommand'.

  2. when trying to 'rebrand' the newFolder command, we just can't get the correct key to handle it. As 'new' was changed to 'newComposite' (as per updated documentation) we tried to the the same for the 'newFolder' command, so we tried 'newCompositeFolder', 'NewCompositeFolder', 'newFolderCommand', 'NewFolderCommand', etc, but no luck.

    {
    "key": "newFolder",
    "hide": false,
    "text": "newFolder Custom name on primary level",
    "iconName": "FabricNewFolder",
    "selectionModes": [
    "NoSelection"
    ],
    "position": 1
    }

Steps to reproduce

  1. create a new list
  2. format the view formatting json with the following json code: { "key": "newCompositeFolder", "hide": false, "text": "newFolder Custom name on primary level", "iconName": "FabricNewFolder", "selectionModes": [ "NoSelection" ], "position": 1 }
  3. Nothing changes in the commandBar, the New button is visible, with newFolder as a sublevel button:

Image

Expected behavior

it should look like this, screenshot from a tenant with the 'old' SP List implementation (still includes the (i) button for the info panel on the right)

Image

Metadata

Metadata

Assignees

Labels

area:list-formattingCategory: View, row & column formatting with JSONsharepoint-developer-supportsharepoint-developer-supporttype:bug-confirmedConfirmed bug, not working as designed / expected.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions