mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 22:54:37 +02:00
* Some WIP inputType
This commit is contained in:
parent
9bc1e2f3d1
commit
6d84018ef5
3 changed files with 38 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue