* Some WIP inputType
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user