forked from microsoft/PowerBI-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings_embed_report.html
77 lines (72 loc) · 3.84 KB
/
settings_embed_report.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<div id="report-embed-table" class="embed-table">
<div id="wrapper-settings-div">
<div class="noOverflow"><h8>Select mode to embed your report in:</h8></div>
<div id="modeSelector">
<label class="radioContainer">
<div onclick="OpenViewMode();"><input type="radio" name="embedMode" value="view" checked="checked"> View mode </input>
<span class="checkmark"></span></div>
</label>
<div class="modeTooltip view">
<img class="infoImg" src="images\info.svg"/>
<span class="tooltipText">User can view and interact with the report</span>
</div>
<label class="radioContainer">
<div onclick="OpenEditMode();"><input type="radio" name="embedMode" value="edit"> Edit mode </input>
<span class="checkmark"></span></div>
</label>
<div class="modeTooltip edit">
<img class="infoImg" src="images\info.svg"/>
<span class="tooltipText edit">User can edit and save the report</span>
</div>
<label class="radioContainer">
<div onclick="OpenCreateMode();"><input type="radio" name="embedMode" value="create"> Create mode </input>
<span class="checkmark"></span></div>
</label>
<div class="modeTooltip create">
<img class="infoImg" src="images\info.svg"/>
<span class="tooltipText create">User can Create and save a new report</span>
</div>
</div>
<h8>Select token type:</h8>
<div id="typeSelector">
<label class="radioContainer">
<div onclick="OnTokenTypeRadioClicked(1);"><input type="radio" name="tokenType" value="1" checked="checked"> Embed token </input>
<span class="checkmark"></span></div>
</label>
<label class="radioContainer">
<div onclick="OnTokenTypeRadioClicked(0);"><input type="radio" name="tokenType" value="0"> AAD token </input>
<span class="checkmark"></span></div>
</label>
</div>
<div class="noOverflow"><h8>Fill in the fields below to get the code to embed your report</h8></div>
<div class="spacer"></div>
<div id="embedModeInput">
<div class="inputLine">
<div class="inputLineTitle">Embed Token</div>
<input type="text" id="txtAccessToken" onchange="UpdateSession(this, SessionKeys.AccessToken);" />
</div>
<div class="inputLine">
<div class="inputLineTitle">Embed URL</div>
<input type="text" id="txtReportEmbed" onchange="UpdateSession(this, SessionKeys.EmbedUrl);" value="https://embedded.powerbi.com/ReportEmbed"/>
</div>
<div class="inputLine">
<div class="inputLineTitle">Report ID</div>
<input type="text" id="txtEmbedReportId" onchange="UpdateSession(this, SessionKeys.EmbedId);"/>
</div>
</div>
<div id="createModeInput">
<div class="inputLine">
<div class="inputLineTitle">Embed Token</div>
<input type="text" id="txtCreateAccessToken" onchange="UpdateSession(this, SessionKeys.AccessToken);" />
</div>
<div class="inputLine">
<div class="inputLineTitle">Embed URL</div>
<input type="text" id="txtCreateReportEmbed" onchange="UpdateSession(this, SessionKeys.EmbedUrl);" value="https://embedded.powerbi.com/ReportEmbed"/>
</div>
<div class="inputLine">
<div class="inputLineTitle">Dataset ID</div>
<input type="text" id="txtEmbedDatasetId" onchange="UpdateSession(this, SessionKeys.EmbedId);"/>
</div>
</div>
</div>
</div>