Revize 3bd98a4b
Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)
sources/src/main/webapp/js/components/edgePopover.js | ||
---|---|---|
9 | 9 |
render() { |
10 | 10 |
super.render(); |
11 | 11 |
|
12 |
this._rootElement.classList.add('edge-popover'); |
|
13 |
|
|
12 | 14 |
this._titleElement.innerText = 'Edge details'; |
13 | 15 |
|
14 | 16 |
this._detailsListElement = DOM.h('ul'); |
... | ... | |
17 | 19 |
return this._rootElement; |
18 | 20 |
} |
19 | 21 |
|
22 |
/** |
|
23 |
* Closes the popover and removes its content. |
|
24 |
*/ |
|
25 |
close() { |
|
26 |
super.close(); |
|
27 |
|
|
28 |
this._detailsListElement.innerHTML = ''; |
|
29 |
} |
|
30 |
|
|
20 | 31 |
/** |
21 | 32 |
* Sets the contents of the popover. |
22 | 33 |
* @param {array} subedgeInfoList List of various edge information. |
sources/src/main/webapp/js/components/vertexPopover.js | ||
---|---|---|
9 | 9 |
render() { |
10 | 10 |
super.render(); |
11 | 11 |
|
12 |
this._rootElement.classList.add('vertex-popover'); |
|
13 |
|
|
12 | 14 |
this._detailsListElement = DOM.h('ul'); |
13 | 15 |
this._bodyElement.appendChild(this._detailsListElement); |
14 | 16 |
|
15 | 17 |
return this._rootElement; |
16 | 18 |
} |
17 | 19 |
|
20 |
/** |
|
21 |
* Closes the popover and removes its content. |
|
22 |
*/ |
|
23 |
close() { |
|
24 |
super.close(); |
|
25 |
|
|
26 |
this._detailsListElement.innerHTML = ''; |
|
27 |
} |
|
28 |
|
|
18 | 29 |
/** |
19 | 30 |
* Sets the title of the popover. |
20 | 31 |
* @public |
Také k dispozici: Unified diff
fixed Vertex and Edge popover to clear its content on close