Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    An abstract Application responsible for displaying and editing a single text-type JournalEntryPage Document.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isV2: boolean = ...

    Indicates that the sheet renders with App V2 rather than V1.

    toc: Record<string, JournalEntryPageHeading>

    The table of contents for this text page.

    _appId: number = 0

    An incrementing integer Application ID.

    _maxZ: number = ...

    The current maximum z-index of any displayed Application.

    BASE_APPLICATION: typeof ApplicationV2 = ApplicationV2

    Designates which upstream Application class in this class' inheritance chain is the base application. Any DEFAULT_OPTIONS of super-classes further upstream of the BASE_APPLICATION are ignored. Hook events for super-classes further upstream of the BASE_APPLICATION are not dispatched.

    DEFAULT_OPTIONS: { classes: string[]; includeTOC: boolean } = ...
    EDIT_PARTS: Record<string, HandlebarsTemplatePart> = ...

    Handlebars parts to render in edit mode.

    emittedEvents: readonly [unknown, "closeView"] = ...
    format: number = JOURNAL_ENTRY_PAGE_FORMATS.HTML

    The format used to edit text content in this sheet.

    isV2: boolean = true

    Indicates that the sheet renders with App V2 rather than V1.

    RENDER_STATES: Record<string, number> = ...

    The sequence of rendering states that describe the Application life-cycle.

    TABS: Record<string, ApplicationTabsConfiguration> = {}

    Configuration of application tabs, with an entry per tab group.

    VIEW_PARTS: Record<string, HandlebarsTemplatePart> = {}

    Handlebars part to render in view mode.

    _converter: Converter = ...

    Bi-directional HTML <-> Markdown converter.

    Accessors

    • get isView(): boolean

      Whether the sheet is in view mode.

      Returns boolean

    Methods

    • Parameters

      • options: any

      Returns any

    • Parameters

      • element: any
      • options: any

      Returns Promise<any>

    • Parameters

      • context: any
      • options: any

      Returns Promise<void>

    • Parameters

      • options: any

      Returns Promise<any>

    • Parameters

      • partId: any
      • context: any
      • options: any

      Returns Promise<any>

    • Parameters

      • event: any
      • form: any
      • formData: any
      • updateData: any

      Returns any

    • Protected

      Determine if any editors have unsaved changes.

      Returns boolean

    • Protected

      Actions performed when this sheet is closed in some parent view.

      Returns void

    • Protected

      Prepare heading level choices.

      Returns Record<string, string>

    • Iterate over the inheritance chain of this Application. The chain includes this Application itself and all parents until the base application is encountered.

      Returns Generator<typeof ApplicationV2, void, unknown>

    • Iterate over the instances of this Application.

      Returns Generator<typeof ApplicationV2, any, any>

    • Parse a CSS style rule into a number of pixels which apply to that dimension.

      Parameters

      • style: string

        The CSS style rule

      • parentDimension: number

        The relevant dimension of the parent element

      Returns number | void

      The parsed style dimension in pixels

    • Wait for any images in the given element to load.

      Parameters

      • element: HTMLElement

        The element.

      Returns Promise<void>