Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
YOV
Helper II
Helper II

Page alignment JSON

Hi,

 

trying to write a custom theme using json, I find Microsoft documentation lacking (no surprise there).

Found ample examples online for visuals alignment, but no Page Alignment json code.

 

Tried the following excerpt:

"page": {
   "*": {
      "background": [{
      "color": { "solid": { "color": "#ffffff" } },
      "transparency": 0,
      "alignment": "middle"
},

but I still get default page vertical alignment as "top".

 

Just to make things clear, I want this to be the default set in JSON:

vert.PNG

 

Thank you!

2 ACCEPTED SOLUTIONS
Mariusz
Community Champion
Community Champion

Hi @YOV 

 

Also, you can customise a current theme and it looks like this property is not included as well.

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

le_tool
Helper I
Helper I

Hello @YOV ,

 

maybe too late, but someone else might be still looking for this 🙂

 

"page": {
      "*": {
           "displayArea": [
                           {
                            "verticalAlignment": "Middle"
                           }
                          ]
           }
        }

View solution in original post

4 REPLIES 4
le_tool
Helper I
Helper I

Hello @YOV ,

 

maybe too late, but someone else might be still looking for this 🙂

 

"page": {
      "*": {
           "displayArea": [
                           {
                            "verticalAlignment": "Middle"
                           }
                          ]
           }
        }
Mariusz
Community Champion
Community Champion

Hi @YOV 

 

You can export Theme in the most recent versions and investigate Json file, by the look of it it's not supported yet.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Mariusz
Community Champion
Community Champion

Hi @YOV 

 

Also, you can customise a current theme and it looks like this property is not included as well.

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Ya thought I'd be able to do it via JSON even though it's not supported in the Themes preview.

Thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.