mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Et2Number: right align input, allow a custom mask
This commit is contained in:
parent
7d07539f10
commit
05b983ab1c
@ -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")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user