简体   繁体   中英

Make a power BI Report in auto focus mode automatically

I have a simple Microsoft Power BI example in which the list of employee are grouped by gender.

  <iframe width="300" height="200" src="https://app.powerbi.com/view?r=******" ></iframe>

My probleme is that my div is not so big (muste be like that ) so the report is not clear but it is clear when i choose auto focus. So can i make it directly or automatically in the auto focus mode? Thanks

Try:

iframe.onblur = function() {
  iframe.focus();
}

OR

<iframe id="iframe" autofocus="true"  width="300" height="200" src="https://app.powerbi.com/view?r=******" ></iframe>
<script>
    document.getElementById('iframe').focus();
</script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM