blockly > Araç Kutusu > selectItem_
Belirtilen öğeyi seçer, seçili olarak işaretler ve aria durumunu günceller.
İmza:
protected selectItem_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem): void;
Parametreler
Şunu döndürür:
geçersiz
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-22 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-22 UTC."],[[["`Toolbox.selectItem_()` is a protected method used for managing the selection state within a Blockly toolbox."],["It takes two arguments: `oldItem` representing the previously selected item and `newItem` representing the item to be selected."],["This method updates the visual and accessibility states of the toolbox by marking the `newItem` as selected and updating ARIA attributes accordingly."],["The method does not return any value (void)."]]],["The `selectItem_` method within the Toolbox class is used to manage the selection of items within a toolbox. It takes two parameters: `oldItem`, representing the previously selected item (or null), and `newItem`, the item now being selected. The method's actions involve marking `newItem` as selected and updating its associated ARIA (Accessible Rich Internet Applications) state. This method returns no values (void).\n"]]