@@ -17,6 +17,7 @@ var MPLCanvasModel = widgets.DOMWidgetModel.extend({
17
17
_model_module_version : '^' + version ,
18
18
_view_module_version : '^' + version ,
19
19
header_visible : true ,
20
+ footer_visible : true ,
20
21
toolbar : null ,
21
22
toolbar_visible : true ,
22
23
toolbar_position : 'horizontal' ,
@@ -219,6 +220,7 @@ var MPLCanvasView = widgets.DOMWidgetView.extend({
219
220
that . _update_toolbar_position ( ) ;
220
221
221
222
that . _update_header_visible ( ) ;
223
+ that . _update_footer_visible ( ) ;
222
224
that . _update_toolbar_visible ( ) ;
223
225
224
226
that . model_events ( ) ;
@@ -227,6 +229,7 @@ var MPLCanvasView = widgets.DOMWidgetView.extend({
227
229
228
230
model_events : function ( ) {
229
231
this . model . on ( 'change:header_visible' , this . _update_header_visible . bind ( this ) ) ;
232
+ this . model . on ( 'change:footer_visible' , this . _update_footer_visible . bind ( this ) ) ;
230
233
this . model . on ( 'change:toolbar_visible' , this . _update_toolbar_visible . bind ( this ) ) ;
231
234
this . model . on ( 'change:toolbar_position' , this . _update_toolbar_position . bind ( this ) ) ;
232
235
this . model . on ( 'change:_figure_label' , this . _update_figure_label . bind ( this ) ) ;
@@ -238,6 +241,10 @@ var MPLCanvasView = widgets.DOMWidgetView.extend({
238
241
this . header . style . display = this . model . get ( 'header_visible' ) ? '' : 'none' ;
239
242
} ,
240
243
244
+ _update_footer_visible : function ( ) {
245
+ this . footer . style . display = this . model . get ( 'footer_visible' ) ? '' : 'none' ;
246
+ } ,
247
+
241
248
_update_toolbar_visible : function ( ) {
242
249
this . toolbar_view . el . style . display = this . model . get ( 'toolbar_visible' ) ? '' : 'none' ;
243
250
} ,
0 commit comments