blockly > ContextMenuRegistry > getItem

طريقة ContextListRegistry.getItem()

Signature:

getItem(id: string): RegistryItem | null;

المَعلمات

المَعلمة Type الوصف
id سلسلة رقم تعريف RegistryItem المطلوب الحصول عليه.

المرتجعات:

RegistryItem | قيمة فارغة

RegistryItem أو قيمة فارغة في حال عدم العثور عليها