Mixin that adds trigger-tab context preparation and listener wiring to any
AppV2 sheet whose document.system has a triggers TypedObjectField of TriggerModel.
The host sheet must:
include triggers in PARTS and in TABS.primary.tabs
include ...BMS_TRIGGER_ACTIONS in DEFAULT_OPTIONS.actions
call this._prepareTriggerContext(context) from _prepareContext
call this._attachTriggerListeners(htmlElement) when partId === "triggers"
(pass { includeTargetMode: true } for Card/Deck sheets)
Mixin that adds trigger-tab context preparation and listener wiring to any AppV2 sheet whose document.system has a
triggersTypedObjectField of TriggerModel.The host sheet must:
triggersin PARTS and in TABS.primary.tabs...BMS_TRIGGER_ACTIONSin DEFAULT_OPTIONS.actionsthis._prepareTriggerContext(context)from_prepareContextthis._attachTriggerListeners(htmlElement)when partId === "triggers" (pass{ includeTargetMode: true }for Card/Deck sheets)