Skip to content

Commit 8340ef4

Browse files
committed
fix button
1 parent dd590cf commit 8340ef4

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/dashboard_publishing.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ format: html
66
## Background
77
I have not had access to Power BI serivce, (the Microsoft cloud service for publishing Power BI dashboards), since April 2025, so things may have changed since then, but for a long time it was not possible to directly publish .pbir or .pbip dashboards directly to Power BI service like you can with .pbix files. According to Microsoft, if you have [git enabled fabric workspaces](https://learn.microsoft.com/en-us/fabric/cicd/git-integration/manage-branches?tabs=azure-devops), it should be possible to directly publish, but if you don't, here are a few workarounds you can try. They're presented in order of complexity.
88

9-
## Just try publishing it as a .pbip file
9+
## Try publishing it as a .pbip file
1010
It may now be possible to directly publish .pbip files. Navigate to `file` > `publish` and then click on `publish to Power BI service`.
1111

1212
![.pbip publish](https://github.com/Russell-Shean/powerbpy/raw/main/docs/assets/images/publish_pbip.png)

src/powerbpy/page.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -309,27 +309,27 @@ def add_button(self,
309309
----------
310310
label : str
311311
The text you want to display inside the button
312-
visual_id: str
312+
visual_id : str
313313
Please choose a unique id to use to identify the button. PBI defaults to using a UUID, but it'd probably be easier if you choose your own id.
314-
height: int
314+
height : int
315315
Height of text box on the page
316-
width: int
316+
width : int
317317
Width of text box on the page
318-
x_position: int
318+
x_position : int
319319
The x coordinate of where you want to put the text box on the page. Origin is page's top left corner.
320-
y_position: int
320+
y_position : int
321321
The y coordinate of where you want to put the text box on the page. Origin is page's top left corner.
322-
z_position: int
322+
z_position : int
323323
The z index for the visual. (Larger number means more to the front, smaller number means more to the back). Defaults to 6000
324-
tab_order: int
324+
tab_order : int
325325
The order which the screen reader reads different elements on the page. Defaults to -1001 for now. (I need to do more to figure out what the numbers correpond to. It should also be possible to create a function to automatically order this left to right top to bottom by looping through all the visuals on a page and comparing their x and y positions)
326-
fill_color: str
326+
fill_color : str
327327
Hex code for the background (fill) color you'd like to use for the button. Defaults to blue (#3086C3)
328-
alpha: int
328+
alpha : int
329329
The transparency of the fill color. Must be a whole integer between 1 and 100. Defaults to 0 (100% not transparent)
330-
url_link: str
330+
url_link : str
331331
Optional argument. If provided, the button will navigate to this URL. Should be a full, not relative url
332-
page_navigation_link: str
332+
page_navigation_link : str
333333
Optional argument. If provided the button will navigate to this page in the report. Must be a valid page_id already present in the report.
334334
335335
Notes

0 commit comments

Comments
 (0)