Browse Source

feature: disabled

es6
guy 3 years ago
parent
commit
6703e315f3
  1. 12
      src/core/4.widget.js

12
src/core/4.widget.js

@ -581,10 +581,6 @@
return this.options.height; return this.options.height;
}, },
isValid: function () {
return !this.options.invalid;
},
addWidget: function (name, widget) { addWidget: function (name, widget) {
var self = this; var self = this;
if (name instanceof BI.Widget) { if (name instanceof BI.Widget) {
@ -685,11 +681,15 @@
}, },
isEnabled: function () { isEnabled: function () {
return this.options.disabled !== null ? !this.options.disabled : !this.options._disabled; return this.options.disabled === true ? false: !this.options._disabled;
},
isValid: function () {
return this.options.invalid === true ? false: !this.options._invalid;
}, },
isVisible: function () { isVisible: function () {
return this.options.invalid !== null ? !this.options.invalid : !this.options._invalid; return !this.options.invisible
}, },
disable: function () { disable: function () {

Loading…
Cancel
Save