blockly > Toolbox > shouldDeselectItem_
Toolbox.bel DeselectItem_()
Określa, czy stary element ma zostać odznaczony.
Podpis:
protected shouldDeselectItem_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem | null): boolean;
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:
boolean
Prawda, jeśli stary element powinien być odznaczony, lub false, jeśli nie jest to możliwe.