Mixin that adds a "modifications" tab + handlers to any AppV2 sheet whose
document.system has a modifications MergeableArrayField of ModificationModel.
The host sheet must:
include modifications: { template: "systems/body-mind-and-soul/templates/parts/modifications.hbs", scrollable: [""] } in PARTS
include the "modifications" tab in TABS.primary.tabs
register the static actions in DEFAULT_OPTIONS.actions:
addModification: Class._onAddModification,
deleteModification: Class._onDeleteModification,
call this._prepareModificationContext(context) from _prepareContext
call this._attachModificationListeners(htmlElement) when partId === "modifications"
map partId "modifications" → tabs.modifications in _preparePartContext
Mixin that adds a "modifications" tab + handlers to any AppV2 sheet whose document.system has a
modificationsMergeableArrayField of ModificationModel.The host sheet must:
modifications: { template: "systems/body-mind-and-soul/templates/parts/modifications.hbs", scrollable: [""] }in PARTSthis._prepareModificationContext(context)from_prepareContextthis._attachModificationListeners(htmlElement)when partId === "modifications"_preparePartContext