• Choose which of a sheet's declared render parts to actually render.

    ApplicationV2 renders exactly the parts named in options.parts, so this list — not the sheet's static PARTS — decides what reaches the DOM. Deriving it from the declared part ids means a sheet gets its tab bodies simply by declaring them, rather than by also restating them in an override; forgetting that second step is what left the Vehicle, Structure, and Cohort sheets showing an empty panel for every tab but Facade (issue #1088).

    Declaration order is preserved, so a sheet controls part order through its PARTS record.

    Parameters

    • partIds: readonly string[]

      The sheet's declared part ids, in declaration order.

    • opts: { isFenced: boolean; isLimited: boolean }

      What to render for.

      • isFenced: boolean

        Whether the document's type is fenced (experimental); the banner part is dropped for unfenced types.

      • isLimited: boolean

        Whether the viewer only has limited permission; the detail tabs are withheld.

    Returns string[]

    The part ids to render, in declaration order.