File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,27 @@ function createTableFromJSON(arr) {
13
13
tr = table . insertRow ( - 1 ) ;
14
14
15
15
var tabK = tr . insertCell ( 0 ) ;
16
- tabK . textContent = arr [ i ] . key ;
17
- tabK . style = "padding-right: 2rem;" ;
16
+ Object . assign ( tabK , {
17
+ textContent : arr [ i ] . key ,
18
+ style : "padding-right: 2rem;" ,
19
+ id : "gl-ext-key-" + i ,
20
+ data - clipboard - target : "#gl-ext-key-" + i
21
+ title : "Copy name" ,
22
+ aria - live : "polite" ,
23
+ data - placement : "bottom" ,
24
+ data - toggle : "tooltip"
25
+ } ) ;
18
26
19
27
var tabV = tr . insertCell ( 1 ) ;
20
- tabV . textContent = arr [ i ] . value ;
28
+ Object . assign ( tabV , {
29
+ textContent : arr [ i ] . value ,
30
+ id : "gl-ext-val-" + i ,
31
+ data - clipboard - target : "#gl-ext-val-" + i
32
+ title : "Copy value" ,
33
+ aria - live : "polite" ,
34
+ data - placement : "bottom" ,
35
+ data - toggle : "tooltip"
36
+ } ) ;
21
37
}
22
38
23
39
divForTheTable . appendChild ( table ) ;
You can’t perform that action at this time.
0 commit comments