mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 00:39:19 +01:00
Some return types
This commit is contained in:
parent
87270d97ed
commit
af1e62b178
@ -100,7 +100,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
|
|||||||
default:'',
|
default:'',
|
||||||
description: "Sets background image, left, right and scale on DOM",
|
description: "Sets background image, left, right and scale on DOM",
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
parentNode : HTMLElement = null;
|
parentNode : HTMLElement = null;
|
||||||
disabled : boolean = false;
|
disabled : boolean = false;
|
||||||
@ -259,7 +259,8 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
|
|||||||
|
|
||||||
private _surroundingsMgr : et2_surroundingsMgr;
|
private _surroundingsMgr : et2_surroundingsMgr;
|
||||||
|
|
||||||
getSurroundings() {
|
getSurroundings() : et2_surroundingsMgr
|
||||||
|
{
|
||||||
if (!this._surroundingsMgr)
|
if (!this._surroundingsMgr)
|
||||||
{
|
{
|
||||||
this._surroundingsMgr = new et2_surroundingsMgr(this);
|
this._surroundingsMgr = new et2_surroundingsMgr(this);
|
||||||
@ -382,14 +383,16 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
|
|||||||
/**
|
/**
|
||||||
* Returns the parent node.
|
* Returns the parent node.
|
||||||
*/
|
*/
|
||||||
getParentDOMNode() {
|
getParentDOMNode() : HTMLElement
|
||||||
|
{
|
||||||
return this.parentNode;
|
return this.parentNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of this element in the DOM tree
|
* Returns the index of this element in the DOM tree
|
||||||
*/
|
*/
|
||||||
getDOMIndex() {
|
getDOMIndex() : number
|
||||||
|
{
|
||||||
if (this.getParent())
|
if (this.getParent())
|
||||||
{
|
{
|
||||||
var idx = 0;
|
var idx = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user