Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PowerBI] Decouple addin settings, default "Show zoom bar" to true #2342

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

encimita
Copy link
Contributor

@encimita encimita commented Nov 12, 2024

Summary

The Power BI Embedded control add-in currently supports a bunch of different settings that change the embed experience making it richer and more customizable.
These settings are currently controlled with the SetSettings add-in function, which takes a bunch of booleans. This is of course not very readable nor very extensible.

This PR cleans up the code for these settings by having a different function to set up each setting. It also flips the default for the "Show Status Bar" setting to true; this is for accessibility reasons, as full-page reports might not be accessible or "navigable" without the zoom controls.

Work Item(s)

Fixes AB#556723

@encimita encimita marked this pull request as ready for review November 26, 2024 14:33
@encimita encimita requested a review from a team as a code owner November 26, 2024 14:33
@@ -411,13 +430,6 @@ function CompileSettings() {
settingsObject.background = models.BackgroundType.Transparent;
}

if (_forceFitToPage) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get that forceFitToPage option is removed, but it wasn't removed from the obsoleted procedure. So it's technically breaking (semantically) anyone using it without the grace period.

I'm ok with breaking if you are too 😄, I'm just pointing it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants