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

    A custom HTML element used to wrap secret blocks in HTML content in order to provide additional interactivity.

    Hierarchy (View Summary)

    Index

    Properties

    tagName: string = "secret-block"

    The HTML tag named used by this element.

    Accessors

    • get revealed(): boolean

      The revealed state of the secret block.

      Returns boolean

    • get secret(): HTMLElement

      The wrapped secret block.

      Returns HTMLElement

    Methods

    • Returns void

    • Called when the element is first removed from a Document. In cases where it is then moved into another Document, this callback is invoked before adoptedCallback, so we must also re-apply the prototype here so that subclasses have any disconnectedCallback overrides invoked appropriately.

      Returns void

    • Toggle the secret revealed or hidden state in content that this secret block represents.

      Parameters

      • content: string

        The raw string content for this secret.

      Returns string

      The modified raw content.