* A lot of cleanup in ViewController

* ViewController.getFormData()
* Lots of WIP work on fse.js & multiple forms
This commit is contained in:
Bryan Ashby 2015-07-04 12:02:37 -06:00
parent a241f91546
commit 13d104c840
6 changed files with 200 additions and 182 deletions

View file

@ -40,5 +40,25 @@ StatusBarView.prototype.setPanels = function(panels) {
|---------------------------------------------|
| stuff |
*/
assert(_.isArray(panels));
this.panels = [];
var tvOpts = {
cursor : 'hide',
position : { row : this.position.row, col : 0 },
};
panels.forEach(function panel(p) {
assert(_.isObject(p));
assert(_.has(p, 'width'));
if(p.text) {
this.panels.push( new TextView( { }))
} else {
this.panels.push( { width : p.width } );
}
});
};