//---------------------------------------------------------------------------- // Copyright (C) 2012 The IPython Development Team // // Distributed under the terms of the BSD License. The full license is in // the file COPYING, distributed as part of this software. //---------------------------------------------------------------------------- //============================================================================ // CellToolbar //============================================================================ /** * A Module to control the per-cell toolbar. * @module IPython * @namespace IPython * @submodule CellToolbar */ var IPython = (function (IPython) { "use strict"; /** * @constructor * @class CellToolbar * @param {The cell to attach the metadata UI to} cell */ var CellToolbar = function (cell) { CellToolbar._instances.push(this); this.inner_element = $('
'); this.cell = cell; this.element = $('
').addClass('celltoolbar') .append(this.inner_element) this.rebuild(); return this; }; CellToolbar.dropdown_preset_element = $('').attr('type','checkbox'); var lbl = $('