Skip to content

Commit 9d564a0

Browse files
committed
EN,CZ : oexplorer : mention about possible manual indexation of event call
1 parent 5c6667a commit 9d564a0

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

cs/oexplorer.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@ Dále podporuje:
4444
2. ⚠️ Pro úplný seznam objektů je nutné, aby byla daná funkcionalita v rámci relace alespoň jednou provedena.
4545
3. Indexovány jsou pouze pojmenované funkce a objekty, které plugin vystavuje přes **this**.
4646

47+
### Ruční indexace volání události
48+
49+
I přes maximální snahu automatizovat indexaci zasílání událostí mezi pluginy může docházet k situacím, kdy všechna volání události nejsou spolehlivě zachycena.
50+
51+
V takovýchto případech můžete na úrovni pluginu zavést informaci o volání události ručně tímto způsobem:
52+
53+
```javascript
54+
init() {
55+
super.init();
56+
57+
const TI = this;
58+
TI.catalogizeEventCall(TI._pluginActivated, EventNames.LocAppend);
59+
}
60+
```
61+
62+
(výpis zkrácen na init funkci)
63+
64+
- EventNames.LocAppend - je jméno zasílané události (LocAppend). Alternativně je možno zapsat i "LocAppend".
65+
- TI._pluginActivated je metoda uvnitř pluginu, která zaslání události provádí (sendEvent)
66+
4767
[PlgsList]: plugins.lst.md "Seznam pluginů"
4868
[OEGroups]: :_/README.md "Seznam kategorií"
4969
[OETree]: :_/tree/TREE.md "Strom dědičností"

en/oexplorer.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@ It also supports:
4444
2. ⚠️ For a complete list of objects, the functionality must be executed at least once during the session.
4545
3. Only named functions and objects that the plugin exposes via **this** are indexed.
4646

47+
### Manual event call indexing
48+
49+
Despite our best efforts to automate the indexing of event sending between plugins, there may be situations where not all event calls are reliably captured.
50+
51+
In such cases, you can manually enter event call information at the plugin level as follows:
52+
53+
```javascript
54+
init() {
55+
super.init();
56+
57+
const TI = this;
58+
TI.catalogizeEventCall(TI._pluginActivated, EventNames.LocAppend);
59+
}
60+
```
61+
62+
(excerpt shortened to init function)
63+
64+
- EventNames.LocAppend - is the name of the event being sent (LocAppend). Alternatively, you can also write "LocAppend".
65+
- TI._pluginActivated is a method within the plugin that sends the event (sendEvent).
66+
4767
[PlgsList]: plugins.lst.md "List of plugins"
4868
[OEGroups]: :_/README.md "Object categories list"
4969
[OETree]: :_/tree/TREE.md "Dependency tree"

0 commit comments

Comments
 (0)