blockly > Toolbox > updateFlyout_

Metoda Toolbox.updateFlyout_()

Określa, czy menu ma być ukryte, czy wyświetlane w zależności od wybranego elementu.

Podpis:

protected updateFlyout_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem | null): void;

Parametry

Parametr Typ Opis
oldItem ISelectableToolboxItem | null Wcześniej wybrany element z zestawu narzędzi.
newItem ISelectableToolboxItem | null Nowo wybrany element z zestawu narzędzi.

Zwraca:

void