* Some WIP inputType

This commit is contained in:
Bryan Ashby 2015-04-07 23:15:34 -06:00
parent 9bc1e2f3d1
commit 6d84018ef5
3 changed files with 38 additions and 6 deletions

View file

@ -13,21 +13,24 @@ exports.TextView = TextView;
function TextView(client, options) {
View.call(this, client, options);
var self = this;
if(this.options.maxLength) {
this.maxLength = this.options.maxLength;
}
this.multiLine = this.options.multiLine || false;
this.fillChar = miscUtil.valueWithDefault(this.options.fillChar, ' ').substr(0, 1);
this.justify = this.options.justify || 'right';
this.inputType = this.options.inputType || 'normal';
this.isPasswordTextStyle = 'P' === this.textStyle || 'password' === this.textStyle;
assert(!this.multiLine); // :TODO: not yet supported
if(!this.multiLine) {
this.dimens.height = 1;
}
this.drawText = function(s) {