Refactoring: cleaning directories structure
[fnpeditor.git] / src / fnpjs / vbox.js
diff --git a/src/fnpjs/vbox.js b/src/fnpjs/vbox.js
new file mode 100644 (file)
index 0000000..dfb5a9f
--- /dev/null
@@ -0,0 +1,13 @@
+define(['libs/jquery', './layout'], function($, layout) {
+    
+    var VBox = function() {};
+    
+    VBox.prototype = new layout.Layout('<div class="fnpjs-vbox"></div>');
+    VBox.prototype.appendView = function(view) {
+        var item = $('<div>').addClass('fnpjs-vbox-item').append(view);
+        this.dom.append(item);
+    };
+    
+    return {VBox: VBox};
+    
+});
\ No newline at end of file