blockly > Toolbox > attachEvents_
Dodaje detektory zdarzeń do elementu div kontenera narzędzi.
Podpis:
protected attachEvents_(container: HTMLDivElement, contentsContainer: HTMLDivElement): void;
Parametry
Parametr |
Typ |
Opis |
kontener |
HTMLDivElement |
Kontener HTML narzędzia. |
contentsContainer |
HTMLDivElement |
Kontener HTML na zawartość zestawu narzędzi. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-08 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-08 UTC."],[[["The `Toolbox.attachEvents_()` method is a protected method used to add event listeners to the toolbox's HTML container."],["This method takes two HTMLDivElement parameters: `container` for the main toolbox structure and `contentsContainer` for the elements within the toolbox."],["It does not return any value (void) after successfully attaching the event listeners."]]],[]]