Documentation - v1.2.0-alpha.3
    Preparing search index...

    A waterfall is a dialog that's optimized for prompting a user with a series of questions.

    Type Parameters

    • O extends object = {}

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    EndOfTurn: DialogTurnResult = ...

    Gets a default end-of-turn result.

    This result indicates that a dialog (or a logical step within a dialog) has completed processing for the current turn, is still active, and is waiting for more input.

    Accessors

    Methods

    • Called when a unique ID needs to be computed for a dialog.

      Returns string

      SHOULD be overridden to provide a more contextually relevant ID. The preferred pattern for ID's is <dialog type>(this.hashedLabel('<dialog args>')).

    • Called after an event was bubbled to all parents and wasn't handled.

      Parameters

      Returns Promise<boolean>

      Whether the event is handled by the current dialog and further processing should stop.

      This is a good place to perform default processing logic for an event. Returning true will prevent any processing of the event by child dialogs.

    • Called before an event is bubbled to its parent.

      Parameters

      Returns Promise<boolean>

      Whether the event is handled by the current dialog and further processing should stop.

      This is a good place to perform interception of an event as returning true will prevent any further bubbling of the event to the dialogs parents and will also prevent any child dialogs from performing their default processing.

    • When overridden in a derived class, prompts the user again for input.

      Parameters

      Returns Promise<void>

      Derived dialogs that support validation and re-prompt logic should override this method. By default, this method has no effect.

      The DialogContext calls this method when the current dialog should re-request input from the user. This method is implemented for prompt dialogs.