Skip to content

Commit 3a20c54

Browse files
committed
Add fullscreen button to demo.
1 parent 7db4639 commit 3a20c54

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

demo/app/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ $(function () {
2121
});
2222
}
2323
});
24+
25+
var $fullscreen = $('#fullscreen');
26+
27+
$fullscreen.on('click', function (event) {
28+
staticReport.fullscreen();
29+
});
2430
});

demo/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ <h2>Static Embed</h2>
2929
<p>Report to embed is known by the developer.</p>
3030

3131
<div id="reportstatic" class="powerbi-container"></div>
32+
33+
<br>
34+
<p>
35+
<button type="button" id="fullscreen" class="btn btn-warning">Toggle Fullscreen</button>
36+
</p>
3237
</div>
3338

3439
<script src="bower_components/jquery/dist/jquery.js"></script>

0 commit comments

Comments
 (0)