blockly > ContextMenuRegistry > ActionRegistryItem

Giao diện ContextMenuRegistry.ActionRegistryItem

Biểu thị một mục trình đơn thông thường, có thể nhấp trong sổ đăng ký.

Chữ ký:

interface ActionRegistryItem extends CoreRegistryItem 

Mở rộng: CoreRegistryItem

Thuộc tính

Thuộc tính Đối tượng sửa đổi Loại Mô tả
lệnh gọi lại (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void
displayText ((p1: Phạm vi) => string | HTMLElement) | string | HTMLElement
preconditionFn (p1: Phạm vi, menuOpenEvent: Sự kiện) => chuỗi
dấu phân cách? không bao giờ (Không bắt buộc)