Forum Discussion

Kimber's avatar
Kimber
Helper III
1 year ago

Setting page navigator width in JSON

I'm trying to set the width of a pageNavigator in my JSON file, but it's having no effect. The first object in the code was derived by looking at the source code of the pbix. The 2nd object follows the official documentation. Has anyone succeeded in setting the width of the page navigator?

 

"pageNavigator": {
    "*": {
       "layouts": [
              {
              "id": 0,
              "position":

                    {
                    "width": 1200

                    }
             }],
        "width": 1200

    }

}

3 Replies

    • Kimber's avatar
      Kimber
      Helper III

      Unfortunately, the code in the json file didn't work. To start, it generated an error because the "general" property is supposed to be an array. But even after fixing that issue, neither of these suggestions successfully set the width of the pageNavigator. It still defaults to 1000.

       

      "pageNavigator": {
          "*": {
              "layouts": [
                  {
                      "id": 0,
                      "position": {
                          "width": 1200
                      }
                  }
              ]

          }

      }

       

       

      "pageNavigator": {
          "*": {

              "general": [
                  {
                      "position": {
                          "width": 1200
                      }
                  }
              ],

          }

      }

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Kimber 

     

    Did rajendraongole1 's method solve your problem? If so, could you please accept it as a solution? This will help more users who are facing the same or similar difficulties. Thank you!

     

    Best Regards,
    Yulia Xu