// Copyright (c) IPython Development Team. // Distributed under the terms of the Modified BSD License. define([ "widgets/js/widget", "base/js/utils", "jquery", "underscore", "bootstrap", ], function(widget, utils, $, _){ var DropdownView = widget.DOMWidgetView.extend({ render : function(){ /** * Called when view is rendered. */ this.$el .addClass('widget-hbox widget-dropdown'); this.$label = $('
') .appendTo(this.$el) .addClass('widget-label') .hide(); this.$buttongroup = $('
') .addClass('widget_item') .addClass('btn-group') .appendTo(this.$el); this.$droplabel = $('