]> git.proxmox.com Git - proxmox-widget-toolkit.git/blob - src/form/PruneKeepField.js
Buttons: add AltText
[proxmox-widget-toolkit.git] / src / form / PruneKeepField.js
1 Ext.define('Proxmox.form.field.PruneKeep', {
2 extend: 'Proxmox.form.field.Integer',
3 xtype: 'pmxPruneKeepField',
4
5 allowBlank: true,
6 minValue: 1,
7
8 listeners: {
9 dirtychange: (field, dirty) => field.triggers.clear.setVisible(dirty),
10 },
11 triggers: {
12 clear: {
13 cls: 'pmx-clear-trigger',
14 weight: -1,
15 hidden: true,
16 handler: function() {
17 this.triggers.clear.setVisible(false);
18 this.setValue(this.originalValue);
19 },
20 },
21 },
22
23 });