Et2Number: right align input, allow a custom mask

This commit is contained in:
nathan 2024-08-06 09:18:19 -06:00
parent 7d07539f10
commit 05b983ab1c

View File

@ -60,6 +60,10 @@ export class Et2Number extends Et2Textbox
max-width: 7em;
}
.input__control {
text-align: right;
}
`,
];
}
@ -293,7 +297,8 @@ export class Et2Number extends Et2Textbox
// The initial options need to match an actual number
radix: this.decimalSeparator,
thousandsSeparator: this.thousandsSeparator,
mask: Number
mask: this.mask ?? Number,
lazy: false
}
if(typeof this.precision != "undefined")
{