Show More
@@ -15,25 +15,25 b' define(["notebook/js/widget"], function(){' | |||||
15 | .addClass('widget-hlabel') |
|
15 | .addClass('widget-hlabel') | |
16 | .hide(); |
|
16 | .hide(); | |
17 | this.$buttongroup = $('<div />') |
|
17 | this.$buttongroup = $('<div />') | |
18 |
|
|
18 | .addClass('widget_item') | |
19 |
|
|
19 | .addClass('btn-group') | |
20 |
|
|
20 | .appendTo(this.$el); | |
21 | this.$el_to_style = this.$buttongroup; // Set default element to style |
|
21 | this.$el_to_style = this.$buttongroup; // Set default element to style | |
22 | this.$droplabel = $('<button />') |
|
22 | this.$droplabel = $('<button />') | |
23 |
|
|
23 | .addClass('btn') | |
24 |
|
|
24 | .addClass('widget-combo-btn') | |
25 |
|
|
25 | .html(' ') | |
26 |
|
|
26 | .appendTo(this.$buttongroup); | |
27 | this.$dropbutton = $('<button />') |
|
27 | this.$dropbutton = $('<button />') | |
28 |
|
|
28 | .addClass('btn') | |
29 |
|
|
29 | .addClass('dropdown-toggle') | |
30 |
|
|
30 | .addClass('widget-combo-carrot-btn') | |
31 |
|
|
31 | .attr('data-toggle', 'dropdown') | |
32 |
|
|
32 | .html('<span class="caret"></span>') | |
33 |
|
|
33 | .appendTo(this.$buttongroup); | |
34 | this.$droplist = $('<ul />') |
|
34 | this.$droplist = $('<ul />') | |
35 |
|
|
35 | .addClass('dropdown-menu') | |
36 |
|
|
36 | .appendTo(this.$buttongroup); | |
37 |
|
37 | |||
38 | // Set defaults. |
|
38 | // Set defaults. | |
39 | this.update(); |
|
39 | this.update(); |
General Comments 0
You need to be logged in to leave comments.
Login now