SerenityJS
    Preparing search index...

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    formId: number = ++Form.formId

    The form id of the form.

    title: string

    The title of the form.

    type: ModalFormType

    The type of form.

    formId: number = 0

    The next form id to use when creating a new form.

    Methods

    • Shows the form to a player and returns a promise that resolves with the form response.

      Parameters

      • player: Player

        The player to show the form to.

      Returns Promise<null | T>

      A promise that resolves with the form response or null if the form was closed without a response.