forked from intermine/im-tables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (48 loc) · 1.27 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../dist/main.css">
<script charset="UTF-8"
type="text/javascript"
src="../dist/imtables.js">
</script>
</head>
<body>
<div class="panel panel-default">
<div id="demo"></div>
</div>
<script>
var selector = '#demo';
var service = {root: 'https://www.flymine.org/flymine/service/'};
var query = {
"from": "Gene",
"select": [
"secondaryIdentifier",
"symbol",
"primaryIdentifier",
"organism.name"
],
"orderBy": [
{
"path": "secondaryIdentifier",
"direction": "ASC"
}
]
};
imtables.configure({
TableCell: {
PreviewTrigger: 'hover',
IndicateOffHostLinks: false
}
});
imtables.loadDash(
selector, // Can also be an element, or a jQuery object.
{"start":0,"size":25}, // May be null
{service: service, query: query} // May be an imjs.Query
).then(
function (table) { console.log('Table loaded', table); },
function (error) { console.error('Could not load table', error); }
);
</script>
</body>
</html>