blockly > Toolbox > shouldDeselectItem_
שיטת Toolbox.shouldDeselectItem_()
ההגדרה קובעת אם יש לבטל את הבחירה של הפריט הישן.
Signature:
protected shouldDeselectItem_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem | null): boolean;
פרמטרים
פרמטר | תיאור | התיאור |
---|---|---|
oldItem | ISelectableToolboxItem | null | הפריט בארגז הכלים שנבחר קודם לכן. |
newItem | ISelectableToolboxItem | null | הפריט החדש שנבחר בארגז הכלים. |
החזרות:
boolean
אם מבטלים את הבחירה בפריט הישן, צריך להזין את הערך True אם לא רוצים למחוק אותו.