EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Method CreateWindow

    CreateWindow<T>(object)

    Creates a new dialog window instance for a specified Blazor component.

    Declaration
    IBlazorWindow CreateWindow<T>(object dataContext = null) where T : IComponent
    Parameters
    Type Name Description
    object dataContext
    Returns
    Type Description
    IBlazorWindow

    An IBlazorWindow representing the created dialog window.

    Type Parameters
    Name Description
    T

    The type of the Blazor component to be displayed in the dialog window. Must implement IComponent.

    Examples
    // Create a new instance of a dialog window containing a custom Blazor component
    var dialogApi = GetService<IDialogWindowUnstableScriptingApi>();
    var myWindow = dialogApi.CreateWindow<MyCustomComponent>();
    
    // Set properties on the window (e.g., title and size)
    myWindow.Title = "Custom Dialog";
    myWindow.Width = 400;
    myWindow.Height = 300;
    
    // Show the window modally
    myWindow.ShowDialog();
    2025 © Xab3r. All rights reserved.