blockly > Toolbox > getToolboxItemById
Metoda Toolbox.getToolboxItemById()
Pobiera element narzędzia o podanym identyfikatorze.
Podpis:
getToolboxItemById(id: string): IToolboxItem | null;
Parametry
Parametr | Typ | Opis |
---|---|---|
id | ciąg znaków | Identyfikator elementu w skrzynce narzędzi. |
Zwroty:
IToolboxItem | null
Element toolbox o podanym identyfikatorze lub null, jeśli taki element nie istnieje.