Show More
@@ -8,12 +8,23 | |||
|
8 | 8 | //============================================================================ |
|
9 | 9 | // Cell |
|
10 | 10 | //============================================================================ |
|
11 | /** | |
|
12 | * @module Cell | |
|
13 | * An extendable module that provide base functionnality to create cell for notebook. | |
|
14 | */ | |
|
11 | 15 | |
|
12 | 16 | var IPython = (function (IPython) { |
|
13 | 17 | |
|
14 | 18 | var utils = IPython.utils; |
|
15 | 19 | |
|
20 | /** | |
|
21 | * The Base `Cell` class from which to inherit | |
|
22 | * @class Cell | |
|
23 | */ | |
|
16 | 24 | |
|
25 | /* | |
|
26 | * @constructor | |
|
27 | */ | |
|
17 | 28 | var Cell = function () { |
|
18 | 29 | this.placeholder = this.placeholder || ''; |
|
19 | 30 | this.read_only = false; |
@@ -31,10 +42,21 var IPython = (function (IPython) { | |||
|
31 | 42 | }; |
|
32 | 43 | |
|
33 | 44 | |
|
34 | // Subclasses must implement create_element. | |
|
45 | /** | |
|
46 | * Empty. Subclasses must implement create_element. | |
|
47 | * This should contain all the code to create the DOM element in notebook | |
|
48 | * and will be called by Base Class constructor. | |
|
49 | * @method create_element | |
|
50 | */ | |
|
35 | 51 | Cell.prototype.create_element = function () {}; |
|
36 | 52 | |
|
37 | 53 | |
|
54 | /** | |
|
55 | * Empty. Subclasses must implement create_element. | |
|
56 | * This should contain all the code to create the DOM element in notebook | |
|
57 | * and will be called by Base Class constructor. | |
|
58 | * @method bind_events | |
|
59 | */ | |
|
38 | 60 | Cell.prototype.bind_events = function () { |
|
39 | 61 | var that = this; |
|
40 | 62 | // We trigger events so that Cell doesn't have to depend on Notebook. |
General Comments 0
You need to be logged in to leave comments.
Login now