Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.textbox.setAttribute('placeholder', attributeValue);
this.element.removeAttribute('placeholder');
}
}
if (this.value) {
this.chips = this.value.split(this.separator);
}
if (normalizeBooleanAttribute('disabled', this.disabled)) {
this.textbox.setAttribute('disabled', '');
this.chiprepeat.removeAttribute('deletable');
this.tagrepeat.removeAttribute('deletable');
}
if (normalizeBooleanAttribute('readonly', this.readonly)) {
this.textbox.setAttribute('readonly', '');
this.chiprepeat.removeAttribute('deletable');
this.tagrepeat.removeAttribute('deletable');
}
}
UxButton.prototype.disabledChanged = function (newValue) {
if (normalizeBooleanAttribute('disabled', newValue)) {
this.button.setAttribute('disabled', '');
}
else {
this.button.removeAttribute('disabled');
}
};
UxButton.prototype.onMouseDown = function (e) {
UxButton.prototype.disabledChanged = function (newValue) {
if (core.normalizeBooleanAttribute('disabled', newValue)) {
this.button.setAttribute('disabled', '');
}
else {
this.button.removeAttribute('disabled');
}
};
UxButton.prototype.onMouseDown = function (e) {
UxButton.prototype.disabledChanged = function (newValue) {
if (normalizeBooleanAttribute('disabled', newValue)) {
this.button.setAttribute('disabled', '');
}
else {
this.button.removeAttribute('disabled');
}
};
UxButton.prototype.onMouseDown = function (e) {
disabledChanged(newValue) {
if (normalizeBooleanAttribute('disabled', newValue)) {
this.button.setAttribute('disabled', '');
}
else {
this.button.removeAttribute('disabled');
}
}
onMouseDown(e) {
get isDisabled() {
return normalizeBooleanAttribute('disabled', this.disabled);
}
bind() {
UxChipInput.prototype.readonlyChanged = function (newValue) {
if (normalizeBooleanAttribute('readonly', newValue)) {
this.textbox.setAttribute('readonly', '');
this.chiprepeat.removeAttribute('deletable');
this.tagrepeat.removeAttribute('deletable');
}
else {
this.textbox.removeAttribute('readonly');
this.chiprepeat.setAttribute('deletable', '');
this.tagrepeat.setAttribute('deletable', '');
}
};
UxChipInput.prototype.themeChanged = function (newValue) {
public disabledChanged(newValue: boolean | string) {
if (normalizeBooleanAttribute('disabled', newValue)) {
this.textbox.setAttribute('disabled', '');
this.chiprepeat.removeAttribute('deletable');
this.tagrepeat.removeAttribute('deletable');
} else {
this.textbox.removeAttribute('disabled');
this.chiprepeat.setAttribute('deletable', '');
this.tagrepeat.setAttribute('deletable', '');
}
}
get: function () {
return normalizeBooleanAttribute('disabled', this.disabled);
},
enumerable: true,
public get isDisabled() {
return normalizeBooleanAttribute('disabled', this.disabled);
}