blockly‏ > ContextMenuRegistry‏ > ActionRegistryItem

הממשק ContextMenuRegistry.ActionRegistryItem

ייצוג של פריט תפריט רגיל שניתן ללחוץ עליו במרשם.

Signature:

interface ActionRegistryItem extends CoreRegistryItem 

ממשיך: CoreRegistryItem

מאפיינים

נכס גורמי שינוי סוג תיאור
callback (scope: היקף, menuOpenEvent: אירוע, menuSelectEvent: אירוע, location: Coordinate) => void
displayText ((p1: Scope) => string | HTMLElement) | string | HTMLElement
preconditionFn (p1: Scope, menuOpenEvent: Event) => string
separator? אף פעם (אופציונלי)