File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ WOQLTableConfig.prototype.json = function(){
33
33
}
34
34
if ( typeof this . pager ( ) != "undefined" ) {
35
35
conf [ 'pager' ] = this . pager ( ) ;
36
+ }
37
+ if ( typeof this . bindings ( ) != "undefined" ) {
38
+ conf [ 'bindings' ] = this . bindings ( ) ;
36
39
}
37
40
if ( typeof this . page ( ) != "undefined" ) {
38
41
conf [ 'page' ] = this . page ( ) ;
@@ -61,6 +64,9 @@ WOQLTableConfig.prototype.loadJSON = function(config, rules){
61
64
if ( typeof config . renderer != "undefined" ) {
62
65
this . renderer ( config . renderer ) ;
63
66
}
67
+ if ( typeof config . bindings != "undefined" ) {
68
+ this . bindings ( config . bindings ) ;
69
+ }
64
70
if ( typeof config . pager != "undefined" ) {
65
71
this . pager ( config . pager ) ;
66
72
}
@@ -217,6 +223,9 @@ WOQLTableRule.prototype.unsortable = function(unsortable){
217
223
return this ;
218
224
}
219
225
226
+
227
+
228
+
220
229
WOQLTableRule . prototype . uncompressed = function ( uncompressed ) {
221
230
if ( typeof uncompressed == "undefined" ) {
222
231
return this . rule . uncompressed ;
Original file line number Diff line number Diff line change @@ -30,12 +30,14 @@ ViewConfig.prototype.getBasicJSON = function(){
30
30
let jr = { } ;
31
31
if ( this . view_render ) jr . render = this . view_render ;
32
32
if ( this . view_renderer ) jr . renderer = this . view_renderer ;
33
+ if ( this . vbindings ) jr . bindings = this . vbindings ;
33
34
return jr ;
34
35
}
35
36
36
37
ViewConfig . prototype . loadBasicJSON = function ( json ) {
37
38
if ( json . render ) this . view_render = json . view_render ;
38
39
if ( json . renderer ) this . view_renderer = json . view_renderer ;
40
+ if ( json . bindings ) this . vbindings = json . bindings
39
41
}
40
42
41
43
ViewConfig . prototype . getBasicprettyPrint = function ( ) {
@@ -46,9 +48,19 @@ ViewConfig.prototype.getBasicprettyPrint = function(){
46
48
if ( typeof this . renderer ( ) != "undefined" ) {
47
49
str += "view.renderer('" + this . renderer ( ) + "')\n" ;
48
50
}
51
+ if ( typeof this . bindings ( ) != "undefined" ) {
52
+ str += "view.bindings('" + this . bindings ( ) + "')\n" ;
53
+ }
49
54
return str ;
50
55
}
51
56
57
+ ViewConfig . prototype . bindings = function ( bindings ) {
58
+ if ( typeof bindings != "undefined" ) {
59
+ this . vbindings = bindings ;
60
+ }
61
+ return this . vbindings ;
62
+ }
63
+
52
64
53
65
function WOQLViewRule ( ) {
54
66
WOQLRule . call ( this ) ;
Original file line number Diff line number Diff line change @@ -182,6 +182,12 @@ WOQLTable.prototype.getColumnOrder = function(){
182
182
return this . config . column_order ( ) ;
183
183
}
184
184
185
+
186
+ WOQLTable . prototype . bindings = function ( ) {
187
+ return this . config . bindings ( ) ;
188
+ }
189
+
190
+
185
191
WOQLTable . prototype . getColumnDimensions = function ( key ) {
186
192
let cstyle = { }
187
193
let w = new WOQLRule ( ) . matchColumn ( this . config . rules , key , "width" ) ;
You can’t perform that action at this time.
0 commit comments