* More work on menu system and form handling. Lots of work to do!

This commit is contained in:
Bryan Ashby 2015-03-30 21:29:06 -06:00
parent d6ffa2b26e
commit 3274908586
7 changed files with 54 additions and 11 deletions

View file

@ -9,7 +9,6 @@ var assert = require('assert');
exports.ButtonView = ButtonView;
function ButtonView(client, options) {
console.log(options);
options.acceptsFocus = miscUtil.valueWithDefault(options.acceptsFocus, true);
options.acceptsInput = miscUtil.valueWithDefault(options.acceptsInput, true);
options.justify = miscUtil.valueWithDefault(options.justify, 'center');
@ -27,4 +26,8 @@ ButtonView.prototype.onKeyPress = function(key, isSpecial) {
if(' ' === key) {
this.emit('action', 'accept');
}
};
};
ButtonView.prototype.getViewData = function() {
return null;
};