mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Set default element to be styled in built-in views
This commit is contained in:
parent
8fba5d2f07
commit
4d324f28f1
@ -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.
|
||||
},
|
||||
|
@ -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();
|
||||
},
|
||||
|
||||
|
@ -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.
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user