integration wip: changing representation of a DocumentNode from naive 1:1 to xml
[fnpeditor.git] / fnpjs / vbox.js
1 define(['libs/jquery-1.9.1.min', './layout'], function($, layout) {
2     
3     var VBox = function() {};
4     
5     VBox.prototype = new layout.Layout('<div class="fnpjs-vbox"></div>');
6     VBox.prototype.appendView = function(view) {
7         var item = $('<div>').addClass('fnpjs-vbox-item').append(view);
8         this.dom.append(item);
9     };
10     
11     return {VBox: VBox};
12     
13 });