First run at TS for valueWidget

This commit is contained in:
nathangray 2020-01-21 07:01:43 -07:00
parent af1e62b178
commit 29809e2395

View File

@ -41,9 +41,6 @@ export class et2_valueWidget extends et2_baseWidget
} }
}; };
label: string = '';
protected _labelContainer: JQuery = null;
/** /**
* *
* *
@ -59,7 +56,7 @@ export class et2_valueWidget extends et2_baseWidget
// Set the value for this element // Set the value for this element
var contentMgr = this.getArrayMgr("content"); var contentMgr = this.getArrayMgr("content");
if (contentMgr != null) { if (contentMgr != null) {
var val = contentMgr.getEntry(this.id,false,true); let val = contentMgr.getEntry(this.id, false, true);
if (val !== null) if (val !== null)
{ {
_attrs["value"] = val; _attrs["value"] = val;
@ -74,7 +71,7 @@ export class et2_valueWidget extends et2_baseWidget
} }
} }
set_label(_value : string) set_label(_value)
{ {
// Abort if there was no change in the label // Abort if there was no change in the label
if (_value == this.label) if (_value == this.label)