Skip to content

Syncfusion Toast #2

@JasminSAB

Description

@JasminSAB

Hi,

I am using WASM 7.0,

 protected override async Task OnInitializedAsync()
 {
     await GetWorkers();

// this part of code works, and the toast notification is displayed
     await ToastObj.ShowAsync(new ToastModel { Title = "aaa", Content = "bbb", CssClass = "ff", Icon = "ff", ShowCloseButton = true });


     MessagingCenter.Subscribe<WorkersForm, ToastResultNotification>(this, "dodaj_moju_uslugu", async (sender, args) =>
     {
// args object = is resolved and subscribe works ok, but, toast notification is not displayed
         await ToastObj.ShowAsync(new ToastModel { Title = args.Title, Content = args.Content, CssClass = args.CssClass, Icon = args.Icon, ShowCloseButton = true });
         StateHasChanged();
     });
 }

Need some help :) thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions