1
1
<!DOCTYPE html>
2
2
3
- < html xmlns =" http://www.w3.org/1999/xhtml " >
3
+ < html >
4
4
5
5
< head >
6
6
7
7
< meta charset ="utf-8 " />
8
- < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
9
8
< meta name ="generator " content ="pandoc " />
9
+ < meta http-equiv ="X-UA-Compatible " content ="IE=EDGE " />
10
10
11
11
12
12
13
13
14
14
< title > Configure tools</ title >
15
15
16
+ < script src ="libs/header-attrs/header-attrs.js "> </ script >
16
17
< script src ="libs/jquery/jquery.min.js "> </ script >
17
18
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
18
19
< link href ="libs/bootstrap/css/cosmo.min.css " rel ="stylesheet " />
19
20
< script src ="libs/bootstrap/js/bootstrap.min.js "> </ script >
20
21
< script src ="libs/bootstrap/shim/html5shiv.min.js "> </ script >
21
22
< script src ="libs/bootstrap/shim/respond.min.js "> </ script >
23
+ < style > h1 {font-size : 34px ;}
24
+ h1 .title {font-size : 38px ;}
25
+ h2 {font-size : 30px ;}
26
+ h3 {font-size : 24px ;}
27
+ h4 {font-size : 18px ;}
28
+ h5 {font-size : 16px ;}
29
+ h6 {font-size : 12px ;}
30
+ code {color : inherit; background-color : rgba (0 , 0 , 0 , 0.04 );}
31
+ pre : not ([class ]) { background-color : white }</ style >
22
32
< script src ="libs/navigation/tabsets.js "> </ script >
23
33
< link href ="libs/highlightjs/default.css " rel ="stylesheet " />
24
34
< script src ="libs/highlightjs/highlight.js "> </ script >
25
35
26
- < style type ="text/css "> code {white-space : pre;}</ style >
27
36
< style type ="text/css ">
28
- pre : not ([class ]) {
29
- background-color : white;
30
- }
31
- </ style >
37
+ code {white-space : pre-wrap;}
38
+ span .smallcaps {font-variant : small-caps;}
39
+ span .underline {text-decoration : underline;}
40
+ div .column {display : inline-block; vertical-align : top; width : 50% ;}
41
+ div .hanging-indent {margin-left : 1.5em ; text-indent : -1.5em ;}
42
+ ul .task-list {list-style : none;}
43
+ </ style >
44
+
45
+ < style type ="text/css "> code {white-space : pre;}</ style >
32
46
< script type ="text/javascript ">
33
47
if ( window . hljs ) {
34
48
hljs . configure ( { languages : [ ] } ) ;
41
55
42
56
43
57
44
- < style type ="text/css ">
45
- h1 {
46
- font-size : 34px ;
47
- }
48
- h1 .title {
49
- font-size : 38px ;
50
- }
51
- h2 {
52
- font-size : 30px ;
53
- }
54
- h3 {
55
- font-size : 24px ;
56
- }
57
- h4 {
58
- font-size : 18px ;
59
- }
60
- h5 {
61
- font-size : 16px ;
62
- }
63
- h6 {
64
- font-size : 12px ;
65
- }
66
- .table th : not ([align ]) {
67
- text-align : left;
68
- }
69
- </ style >
70
58
71
59
72
- </ head >
73
60
74
- < body >
61
+
75
62
76
63
< style type = "text/css ">
77
64
.main-container {
78
65
max-width : 940px ;
79
66
margin-left : auto;
80
67
margin-right : auto;
81
68
}
82
- code {
83
- color : inherit;
84
- background-color : rgba (0 , 0 , 0 , 0.04 );
85
- }
86
69
img {
87
70
max-width : 100% ;
88
- height : auto;
89
71
}
90
72
.tabbed-pane {
91
73
padding-top : 12px ;
92
74
}
75
+ .html-widget {
76
+ margin-bottom : 20px ;
77
+ }
93
78
button .code-folding-btn : focus {
94
79
outline : none;
95
80
}
81
+ summary {
82
+ display : list-item;
83
+ }
84
+ pre code {
85
+ padding : 0 ;
86
+ }
96
87
</ style >
97
88
98
89
99
90
100
- < div class ="container-fluid main-container ">
101
-
102
91
<!-- tabsets -->
103
- < script >
104
- $ ( document ) . ready ( function ( ) {
105
- window . buildTabsets ( "TOC" ) ;
106
- } ) ;
107
- </ script >
92
+
93
+ < style type ="text/css ">
94
+ .tabset-dropdown > .nav-tabs {
95
+ display : inline-table;
96
+ max-height : 500px ;
97
+ min-height : 44px ;
98
+ overflow-y : auto;
99
+ border : 1px solid # ddd ;
100
+ border-radius : 4px ;
101
+ }
102
+
103
+ .tabset-dropdown > .nav-tabs > li .active : before {
104
+ content : "" ;
105
+ font-family : 'Glyphicons Halflings' ;
106
+ display : inline-block;
107
+ padding : 10px ;
108
+ border-right : 1px solid # ddd ;
109
+ }
110
+
111
+ .tabset-dropdown > .nav-tabs .nav-tabs-open > li .active : before {
112
+ content : "" ;
113
+ border : none;
114
+ }
115
+
116
+ .tabset-dropdown > .nav-tabs .nav-tabs-open : before {
117
+ content : "" ;
118
+ font-family : 'Glyphicons Halflings' ;
119
+ display : inline-block;
120
+ padding : 10px ;
121
+ border-right : 1px solid # ddd ;
122
+ }
123
+
124
+ .tabset-dropdown > .nav-tabs > li .active {
125
+ display : block;
126
+ }
127
+
128
+ .tabset-dropdown > .nav-tabs > li > a ,
129
+ .tabset-dropdown > .nav-tabs > li > a : focus ,
130
+ .tabset-dropdown > .nav-tabs > li > a : hover {
131
+ border : none;
132
+ display : inline-block;
133
+ border-radius : 4px ;
134
+ background-color : transparent;
135
+ }
136
+
137
+ .tabset-dropdown > .nav-tabs .nav-tabs-open > li {
138
+ display : block;
139
+ float : none;
140
+ }
141
+
142
+ .tabset-dropdown > .nav-tabs > li {
143
+ display : none;
144
+ }
145
+ </ style >
108
146
109
147
<!-- code folding -->
110
148
111
149
112
150
113
151
152
+ </ head >
153
+
154
+ < body >
155
+
156
+
157
+ < div class ="container-fluid main-container ">
158
+
159
+
114
160
115
161
< style type ="text/css ">
116
162
body {
177
223
</ div >
178
224
< div class ="col-sm-9 content-body ">
179
225
180
- < div class =" fluid-row " id ="header ">
226
+ < div id ="header ">
181
227
182
228
183
229
@@ -198,9 +244,21 @@ <h2>Use <strong>visConfigure()</strong> to configure and view options directly o
198
244
< p > < img src ="images/ex_configure.png " alt ="Drawing " style ="width: 600px; "/> </ p >
199
245
</ div >
200
246
</ div >
247
+ < div id ="or-prefer-the-shiny-app-module-visnetworkeditor " class ="section level2 ">
248
+ < h2 > or prefer the shiny app / module visNetworkEditor !</ h2 >
249
+ < pre class ="r "> < code > nodes <- data.frame(id = 1:3, label = paste("Node", 1:3))
250
+ edges <- data.frame(from = c(1,2), to = c(1,3), label = paste("Edge", 1:2))
251
+ network <- visNetwork(nodes, edges)
252
+
253
+ custom_network <- visNetworkEditor(object = network)
254
+ custom_network</ code > </ pre >
255
+ < div style ="text-align:center " markdown ="1 ">
256
+ < p > < img src ="images/ex_editor.png " alt ="Drawing " style ="width: 600px; "/> </ p >
257
+ </ div >
258
+ </ div >
201
259
202
260
< footer >
203
- < p > < small > © 2016-2017 DataStorm</ small > </ p >
261
+ < p > < small > © 2020-2021 DataStorm</ small > </ p >
204
262
</ footer >
205
263
206
264
</ div >
@@ -216,7 +274,7 @@ <h2>Use <strong>visConfigure()</strong> to configure and view options directly o
216
274
217
275
// add bootstrap table styles to pandoc tables
218
276
function bootstrapStylePandocTables ( ) {
219
- $ ( 'tr.header ' ) . parent ( 'thead ' ) . parent ( 'table' ) . addClass ( 'table table-condensed' ) ;
277
+ $ ( 'tr.odd ' ) . parent ( 'tbody ' ) . parent ( 'table' ) . addClass ( 'table table-condensed' ) ;
220
278
}
221
279
$ ( document ) . ready ( function ( ) {
222
280
bootstrapStylePandocTables ( ) ;
@@ -225,6 +283,23 @@ <h2>Use <strong>visConfigure()</strong> to configure and view options directly o
225
283
226
284
</ script >
227
285
286
+ <!-- tabsets -->
287
+
288
+ < script >
289
+ $ ( document ) . ready ( function ( ) {
290
+ window . buildTabsets ( "TOC" ) ;
291
+ } ) ;
292
+
293
+ $ ( document ) . ready ( function ( ) {
294
+ $ ( '.tabset-dropdown > .nav-tabs > li' ) . click ( function ( ) {
295
+ $ ( this ) . parent ( ) . toggleClass ( 'nav-tabs-open' ) ;
296
+ } ) ;
297
+ } ) ;
298
+ </ script >
299
+
300
+ <!-- code folding -->
301
+
302
+
228
303
<!-- dynamically load mathjax for compatibility with self-contained -->
229
304
< script >
230
305
( function ( ) {
0 commit comments