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