require(["notebook/js/widget"], function(){ var SelectionWidgetModel = IPython.WidgetModel.extend({}); IPython.notebook.widget_manager.register_widget_model('SelectionWidgetModel', SelectionWidgetModel); var DropdownView = IPython.WidgetView.extend({ // Called when view is rendered. render : function(){ this.$el .addClass('widget-hbox-single') .html(''); this.$label = $('
') .appendTo(this.$el) .addClass('widget-label') .hide(); this.$buttongroup = $('
') .addClass('widget_item') .addClass('btn-group') .appendTo(this.$el); this.$droplabel = $('