X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/4e9af76312159043dfa1c15a56945e232ccfaed3..0214643f72c6aaa8e85eaba2ad27f2ca03ca6401:/fnpjs/vbox.js diff --git a/fnpjs/vbox.js b/fnpjs/vbox.js new file mode 100644 index 0000000..a7a5a67 --- /dev/null +++ b/fnpjs/vbox.js @@ -0,0 +1,13 @@ +define(['libs/jquery-1.9.1.min', './layout'], function($, layout) { + + var VBox = function() {}; + + VBox.prototype = new layout.Layout('
'); + VBox.prototype.appendView = function(view) { + var item = $('
').addClass('fnpjs-vbox-item').append(view); + this.dom.append(item); + } + + return {VBox: VBox}; + +}); \ No newline at end of file