Set default element to be styled in built-in views

This commit is contained in:
Jonathan Frederic 2013-11-01 20:59:10 +00:00
parent 8fba5d2f07
commit 4d324f28f1
3 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,7 @@ require(["notebook/js/widget"], function(){
})
.appendTo(this.$el);
this.$el_to_style = this.$checkbox; // Set default element to style
this.update(); // Set defaults.
},
@ -64,6 +65,7 @@ require(["notebook/js/widget"], function(){
.attr('type', 'button')
.attr('data-toggle', 'button')
.appendTo(this.$el);
this.$el_to_style = this.$button; // Set default element to style
this.update(); // Set defaults.
},

View File

@ -18,6 +18,7 @@ require(["notebook/js/widget"], function(){
.addClass('widget_item')
.addClass('btn-group')
.appendTo(this.$el);
this.$el_to_style = this.$buttongroup; // Set default element to style
this.$droplabel = $('<button />')
.addClass('btn')
.addClass('widget-combo-btn')
@ -96,6 +97,7 @@ require(["notebook/js/widget"], function(){
.appendTo(this.$el)
.addClass('widget-container')
.addClass('vbox');
this.$el_to_style = this.$container; // Set default element to style
this.update();
},
@ -181,6 +183,7 @@ require(["notebook/js/widget"], function(){
.addClass('btn-group')
.attr('data-toggle', 'buttons-radio')
.appendTo(this.$el);
this.$el_to_style = this.$buttongroup; // Set default element to style
this.update();
},

View File

@ -36,6 +36,7 @@ require(["notebook/js/widget"], function(){
.attr('rows', 5)
.addClass('widget-text')
.appendTo(this.$el);
this.$el_to_style = this.$textbox; // Set default element to style
this.update(); // Set defaults.
},
@ -89,6 +90,7 @@ require(["notebook/js/widget"], function(){
.addClass('input')
.addClass('widget-text')
.appendTo(this.$el);
this.$el_to_style = this.$textbox; // Set default element to style
this.update(); // Set defaults.
},