-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-ds.html
41 lines (33 loc) · 1.46 KB
/
index-ds.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reveal Sdk - Create New Dashboard</title>
</head>
<body>
<div id="viewer" style="height: calc(100vh - 20px); width: 100%;"></div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://unpkg.com/[email protected]/dayjs.min.js"></script>
<script src="https://dl.revealbi.io/reveal/libs/1.7.1/infragistics.reveal.js"></script>
<script type="text/javascript">
$.ig.RevealSdkSettings.setBaseUrl("http://localhost:5111/");
$.ig.RevealSdkSettings.setAdditionalHeadersProvider(function (url) {
return headers;
});
const headers = {};
var revealView = new $.ig.RevealView("#viewer");
revealView.startInEditMode = true;
revealView.onDataSourcesRequested = (callback) => {
headers["x-header-one"] = "BLONP";
var sqlServerDataSource = new $.ig.RVAzureSqlDataSource();
sqlServerDataSource.id="sqlServer";
sqlServerDataSource.title = "Northwind Database ";
sqlServerDataSource.subtitle = "All Tables, Views, Sprocs";
callback(new $.ig.RevealDataSources([sqlServerDataSource],
[], false));
};
</script>
</body>
</html>