wip: Experimenting with new approach - dividing visualEditor module
[fnpeditor.git] / fnpjs / vbox.js
diff --git a/fnpjs/vbox.js b/fnpjs/vbox.js
new file mode 100644 (file)
index 0000000..a7a5a67
--- /dev/null
@@ -0,0 +1,13 @@
+define(['libs/jquery-1.9.1.min', './layout'], function($, layout) {\r
+    \r
+    var VBox = function() {};\r
+    \r
+    VBox.prototype = new layout.Layout('<div class="fnpjs-vbox"></div>');\r
+    VBox.prototype.appendView = function(view) {\r
+        var item = $('<div>').addClass('fnpjs-vbox-item').append(view);\r
+        this.dom.append(item);\r
+    }\r
+    \r
+    return {VBox: VBox};\r
+    \r
+});
\ No newline at end of file