Forum Discussion
apenaranda
2 years agoPost Partisan
view mobile version app flask embedded
Hello, I have an app made in Flask where I embed the power bi reports. These reports are in desktop view design and I would like to make a report in mobile view. The ideal would be to make the repor...
apenaranda
2 years agoPost Partisan
I will review what you say.
In reference to the javascript code, I have already tested it on localhost from my PC, adding this part to the code but it doesn't do anything, I don't know if it detects desktop so it no longer shows the mobile layout, is that right?...
On the other hand, if the mobile design is for the power bi app, how should I do it if I have my own app in python? Basically what I want is to show the mobile or desktop design depending on which device I connect from.
var embedConfiguration = {
type: 'report',
id: reportId,
embedUrl: embedUrl,
tokenType: tokenType,
accessToken: accessToken,
settings: {
layoutType: models.LayoutType.MobilePortrait
}
};