mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 12:44:56 +00:00

this adds a subclass of Ext.form.field.Number with the settings for Integers (allowDecimals: false and allowExponential: false and default step size 1) and use it where we only accept integers Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
9 lines
183 B
JavaScript
9 lines
183 B
JavaScript
Ext.define('PVE.form.IntegerField',{
|
|
extend: 'Ext.form.field.Number',
|
|
alias: 'widget.pveIntegerField',
|
|
|
|
allowDecimals: false,
|
|
allowExponential: false,
|
|
step: 1
|
|
});
|