Skip to main content

Search

Comments

1 comment

  • Christof

    Hi Dan

    The List Actions (or other custom actions) have no key reserved in the list formatting.

    But you can change the position of the default command bar buttons to achieve the desired positioning. Check my example with two configured List Actions:

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
      "commandBarProps": {
        "commands": [
          {
            "key": "new",
            "position": 1
          },
          {
            "key": "editInGridView",
            "position": 4
          },
          {
            "key": "share",
            "position": 5
          },
          {
            "key": "export",
            "position": 100
          },
          {
            "key": "automate",
            "position": 200
          }
        ]
      }
    }


    It looks the buttons are ordered first by the default order and corrected afterwards by positioning to specific index position [0-x]

    1

Please sign in to leave a comment.