blockly > टूलबॉक्स > shouldSelectItem_
Toolbox.shouldSelectItem_() मेथड
तय करता है कि नया आइटम चुनना चाहिए या नहीं.
हस्ताक्षर:
protected shouldSelectItem_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem | null): boolean;
पैरामीटर
पैरामीटर | Type | ब्यौरा |
---|---|---|
oldItem | ISelectableToolboxItem | शून्य | पहले चुना गया टूलबॉक्स आइटम. |
newItem | ISelectableToolboxItem | शून्य | चुना गया नया टूलबॉक्स आइटम. |
सामान लौटाना:
boolean
अगर नया आइटम चुनना है, तो 'सही' है, नहीं तो 'गलत' है.