Body, Mind & Soul — API Reference
    Preparing search index...

    Function ModificationsMixin

    • 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

      Parameters

      • Base: any

      Returns typeof __class