mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
First run at TS for valueWidget
This commit is contained in:
parent
af1e62b178
commit
29809e2395
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user