Sha256: bd1715aa0bdd57eb5086d05bcd58a1b31b8b05f4eb5ae5b98c47b9ed523a2d93
Contents?: true
Size: 747 Bytes
Versions: 34
Compression:
Stored size: 747 Bytes
Contents
// Overrides that implement setReadonlyMode for form fields. // Ext.form.field.Base.override({ setReadonlyMode: function(onOff){ if (this.hidden) return; if (!this.initialConfig.readOnly) { this.setReadOnly(onOff); } if (onOff) { this.addCls("readonly"); if (this.label) this.label.addCls("readonly"); } else { this.removeCls("readonly"); if (this.label) this.label.removeCls("readonly"); } } }); // Also the FieldContainer Ext.form.FieldContainer.override({ setReadonlyMode: function(onOff){ this.items.each(function(i){ i.setReadonlyMode(onOff); }); } }); Ext.form.field.Checkbox.override({ setReadonlyMode: function(onOff){ this.setDisabled(onOff); } });
Version data entries
34 entries across 34 versions & 2 rubygems