blockly > Zestaw narzędzi > getPreviouslySelectedItem

Metoda Toolbox.getPreviouslySelectedItem()

Pobiera wybrany wcześniej element.

Podpis:

getPreviouslySelectedItem(): ISelectableToolboxItem | null;

Zwroty:

ISelectableToolboxItem | wartość null

Poprzednio wybrany element lub wartość null, jeśli nie wybrano wcześniej żadnego elementu.