4
4
5
5
InfoPanel shows a tab panel for selecting:
6
6
* hiding (showing the Graph)
7
+ * Filters
7
8
* Nodes Table
8
9
* Edges Table
10
+ * Vocabulary
9
11
* Help
10
12
11
13
The panel itself can be resized vertically.
@@ -26,10 +28,11 @@ const ReactStrap = require('reactstrap');
26
28
const { TabContent, TabPane, Nav, NavItem, NavLink, Row, Col, Button } = ReactStrap ;
27
29
const classnames = require ( 'classnames' ) ;
28
30
29
- const Help = require ( './Help' ) ;
30
- const Vocabulary = require ( './Vocabulary' ) ;
31
+ const FiltersPanel = require ( './filter/FiltersPanel' ) ;
31
32
const NodeTable = require ( './NodeTable' ) ;
32
33
const EdgeTable = require ( './EdgeTable' ) ;
34
+ const Vocabulary = require ( './Vocabulary' ) ;
35
+ const Help = require ( './Help' ) ;
33
36
34
37
/// REACT COMPONENT ///////////////////////////////////////////////////////////
35
38
/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -67,7 +70,7 @@ class InfoPanel extends UNISYS.Component {
67
70
window . event . stopPropagation ( ) ;
68
71
if ( this . state . activeTab !== tab ) {
69
72
this . setState ( { activeTab : tab } ) ;
70
- if ( ( tab === `1` ) || ( tab === '5 ' ) ) {
73
+ if ( ( tab === `1` ) || ( tab === '6 ' ) ) { // graph or help
71
74
this . setState ( {
72
75
tabpanelHeight : '50px' , // show only tab buttons
73
76
hideDragger : true ,
@@ -155,39 +158,47 @@ class InfoPanel extends UNISYS.Component {
155
158
onClick = { ( ) => { this . toggle ( '1' ) ; this . sendGA ( 'Graph' , window . location ) ; } }
156
159
>
157
160
Graph
158
- </ NavLink >
161
+ </ NavLink >
159
162
</ NavItem >
160
163
< NavItem >
161
164
< NavLink
162
165
className = { classnames ( { active : this . state . activeTab === '2' } ) }
163
- onClick = { ( ) => { this . toggle ( '2' ) ; this . sendGA ( 'Nodes Table ' , window . location ) ; } }
166
+ onClick = { ( ) => { this . toggle ( '2' ) ; this . sendGA ( 'Filter ' , window . location ) ; } }
164
167
>
165
- Nodes Table
166
- </ NavLink >
168
+ Filters
169
+ </ NavLink >
167
170
</ NavItem >
168
171
< NavItem >
169
172
< NavLink
170
173
className = { classnames ( { active : this . state . activeTab === '3' } ) }
171
- onClick = { ( ) => { this . toggle ( '3' ) ; this . sendGA ( 'Edges Table' , window . location ) ; } }
174
+ onClick = { ( ) => { this . toggle ( '3' ) ; this . sendGA ( 'Nodes Table' , window . location ) ; } }
172
175
>
173
- Edges Table
174
- </ NavLink >
176
+ Nodes Table
177
+ </ NavLink >
175
178
</ NavItem >
176
179
< NavItem >
177
180
< NavLink
178
181
className = { classnames ( { active : this . state . activeTab === '4' } ) }
179
- onClick = { ( ) => { this . toggle ( '4' ) ; this . sendGA ( 'Vocabulary ' , window . location ) ; } }
182
+ onClick = { ( ) => { this . toggle ( '4' ) ; this . sendGA ( 'Edges Table ' , window . location ) ; } }
180
183
>
181
- Vocabulary
182
- </ NavLink >
184
+ Edges Table
185
+ </ NavLink >
183
186
</ NavItem >
184
187
< NavItem >
185
188
< NavLink
186
189
className = { classnames ( { active : this . state . activeTab === '5' } ) }
187
- onClick = { ( ) => { this . toggle ( '5' ) ; this . sendGA ( 'Help' , window . location ) ; } }
190
+ onClick = { ( ) => { this . toggle ( '5' ) ; this . sendGA ( 'Vocabulary' , window . location ) ; } }
191
+ >
192
+ Vocabulary
193
+ </ NavLink >
194
+ </ NavItem >
195
+ < NavItem >
196
+ < NavLink
197
+ className = { classnames ( { active : this . state . activeTab === '6' } ) }
198
+ onClick = { ( ) => { this . toggle ( '6' ) ; this . sendGA ( 'Help' , window . location ) ; } }
188
199
>
189
200
Help
190
- </ NavLink >
201
+ </ NavLink >
191
202
</ NavItem >
192
203
</ Nav >
193
204
< TabContent activeTab = { this . state . activeTab } >
@@ -196,25 +207,32 @@ class InfoPanel extends UNISYS.Component {
196
207
< TabPane tabId = "2" >
197
208
< Row >
198
209
< Col sm = "12" >
199
- < NodeTable tableHeight = { tableHeight } bIgnoreTableUpdates = { bIgnoreTableUpdates } />
210
+ < FiltersPanel tableHeight = { tableHeight } />
200
211
</ Col >
201
212
</ Row >
202
213
</ TabPane >
203
214
< TabPane tabId = "3" >
204
215
< Row >
205
216
< Col sm = "12" >
206
- < EdgeTable tableHeight = { tableHeight } bIgnoreTableUpdates = { bIgnoreTableUpdates } />
217
+ < NodeTable tableHeight = { tableHeight } bIgnoreTableUpdates = { bIgnoreTableUpdates } />
207
218
</ Col >
208
219
</ Row >
209
220
</ TabPane >
210
221
< TabPane tabId = "4" >
211
222
< Row >
212
223
< Col sm = "12" >
213
- < Vocabulary tableHeight = { tableHeight } />
224
+ < EdgeTable tableHeight = { tableHeight } bIgnoreTableUpdates = { bIgnoreTableUpdates } />
214
225
</ Col >
215
226
</ Row >
216
227
</ TabPane >
217
228
< TabPane tabId = "5" >
229
+ < Row >
230
+ < Col sm = "12" >
231
+ < Vocabulary tableHeight = { tableHeight } />
232
+ </ Col >
233
+ </ Row >
234
+ </ TabPane >
235
+ < TabPane tabId = "6" >
218
236
< Row >
219
237
< Col sm = "12" >
220
238
< Help />
0 commit comments