BzOperationMessage

Operation message

Controls

Unlike a toast, this one stacks messages inside the page — good for the result of a multi-step operation. You drive it through a ref.

razor
@using BzCore.Components.Notification
@using BzCore.Enums

<BzOperationMessage @ref="_msg" Grouped="true" Title="نتیجه عملیات" Max="20" />

@code {
    BzOperationMessage _msg = default!;

    void Save() {
        // افزودن به پیام های قبلی
        _msg.Success("ذخیره شد.");
        _msg.Error("فیلد ایمیل نامعتبر است.");

        // پاک کردن همه و نمایش یک پیام
        _msg.Replace(BzOpStatus.Success, "همه‌چیز انجام شد.");

        // پاک کردن یک گروه یا همه
        _msg.Clear(BzOpStatus.Error);
        _msg.ClearAll();
    }
}