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(){
3333 }
3434 if ( typeof this . pager ( ) != "undefined" ) {
3535 conf [ 'pager' ] = this . pager ( ) ;
36+ }
37+ if ( typeof this . bindings ( ) != "undefined" ) {
38+ conf [ 'bindings' ] = this . bindings ( ) ;
3639 }
3740 if ( typeof this . page ( ) != "undefined" ) {
3841 conf [ 'page' ] = this . page ( ) ;
@@ -61,6 +64,9 @@ WOQLTableConfig.prototype.loadJSON = function(config, rules){
6164 if ( typeof config . renderer != "undefined" ) {
6265 this . renderer ( config . renderer ) ;
6366 }
67+ if ( typeof config . bindings != "undefined" ) {
68+ this . bindings ( config . bindings ) ;
69+ }
6470 if ( typeof config . pager != "undefined" ) {
6571 this . pager ( config . pager ) ;
6672 }
@@ -217,6 +223,9 @@ WOQLTableRule.prototype.unsortable = function(unsortable){
217223 return this ;
218224}
219225
226+
227+
228+
220229WOQLTableRule . prototype . uncompressed = function ( uncompressed ) {
221230 if ( typeof uncompressed == "undefined" ) {
222231 return this . rule . uncompressed ;
Original file line number Diff line number Diff line change @@ -30,12 +30,14 @@ ViewConfig.prototype.getBasicJSON = function(){
3030 let jr = { } ;
3131 if ( this . view_render ) jr . render = this . view_render ;
3232 if ( this . view_renderer ) jr . renderer = this . view_renderer ;
33+ if ( this . vbindings ) jr . bindings = this . vbindings ;
3334 return jr ;
3435}
3536
3637ViewConfig . prototype . loadBasicJSON = function ( json ) {
3738 if ( json . render ) this . view_render = json . view_render ;
3839 if ( json . renderer ) this . view_renderer = json . view_renderer ;
40+ if ( json . bindings ) this . vbindings = json . bindings
3941}
4042
4143ViewConfig . prototype . getBasicprettyPrint = function ( ) {
@@ -46,9 +48,19 @@ ViewConfig.prototype.getBasicprettyPrint = function(){
4648 if ( typeof this . renderer ( ) != "undefined" ) {
4749 str += "view.renderer('" + this . renderer ( ) + "')\n" ;
4850 }
51+ if ( typeof this . bindings ( ) != "undefined" ) {
52+ str += "view.bindings('" + this . bindings ( ) + "')\n" ;
53+ }
4954 return str ;
5055}
5156
57+ ViewConfig . prototype . bindings = function ( bindings ) {
58+ if ( typeof bindings != "undefined" ) {
59+ this . vbindings = bindings ;
60+ }
61+ return this . vbindings ;
62+ }
63+
5264
5365function WOQLViewRule ( ) {
5466 WOQLRule . call ( this ) ;
Original file line number Diff line number Diff line change @@ -182,6 +182,12 @@ WOQLTable.prototype.getColumnOrder = function(){
182182 return this . config . column_order ( ) ;
183183}
184184
185+
186+ WOQLTable . prototype . bindings = function ( ) {
187+ return this . config . bindings ( ) ;
188+ }
189+
190+
185191WOQLTable . prototype . getColumnDimensions = function ( key ) {
186192 let cstyle = { }
187193 let w = new WOQLRule ( ) . matchColumn ( this . config . rules , key , "width" ) ;
You can’t perform that action at this time.
0 commit comments