Tesserae

ProgressModal

Description

ProgressModal is a modal dialog component designed for displaying progress information in a blocking UI overlay. It is part of the Progress group and is ideal when you need to inform users about ongoing processes—whether they are percentage-based or indeterminate. The component supports dynamic messages, switching between a spinner and a progress indicator, and cancellation actions.

Usage

You can instantiate the ProgressModal using the static helper method from Tesserae.UI. This example demonstrates creating a progress modal with a title, a dynamic message, and a cancel button:

Methods

  • Show() → ProgressModal
    Displays the modal dialog. Returns the current ProgressModal instance.

  • ShowEmbedded() → IComponent
    Renders the modal in an embedded mode (non-blocking) and returns it as an IComponent.

  • Hide() → ProgressModal
    Hides the modal dialog. Returns the current ProgressModal instance.

  • Message(string message) → ProgressModal
    Sets the message text of the modal.
    • Parameter:

    • message (string): The text message to display.
  • Message(IComponent message) → ProgressModal
    Sets a custom component as the message of the modal.
    • Parameter:

    • message (IComponent): A custom component to use as the message.
  • Title(string title) → ProgressModal
    Sets the title text of the modal with standardized styling.
    • Parameter:

    • title (string): The title text.
  • Title(IComponent title) → ProgressModal
    Sets a custom component as the title of the modal.
    • Parameter:

    • title (IComponent): A custom component to display as the title.
  • Progress(float percent) → ProgressModal
    Updates the progress indicator to reflect a percentage-based progress.
    • Parameter:

    • percent (float): The current progress percentage.
  • Progress(int position, int total) → ProgressModal
    An overload that calculates the percentage progress based on the current position and total value.
    • Parameters:

    • position (int): The current progress position.
    • total (int): The total value representing 100% progress.
  • ProgressIndeterminated() → ProgressModal
    Switches the progress view to an indeterminate state where progress is not percentage-based.

  • ProgressSpin() → ProgressModal
    Switches the progress view to a spinner animation. Useful for short operations or when the progress value is unknown.

  • WithCancel(Action

  • btnCancel (Action

Properties

This component does not expose any public properties.

Samples

Basic Usage Sample

In this sample, the ProgressModal is displayed with dynamic updates and a cancel button. The modal starts with a spinner, updates to show percentage-based progress, and finally switches to an indeterminate state before hiding.

See also

Referenced by

© 2026 Tesserae. All rights reserved.