Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast Notifications in Custom Action and Markdown HTML #10822

Open
nicovon24 opened this issue May 18, 2024 · 1 comment
Open

Toast Notifications in Custom Action and Markdown HTML #10822

nicovon24 opened this issue May 18, 2024 · 1 comment
Assignees
Labels
question generic question

Comments

@nicovon24
Copy link

Hello, anyone knows how to show a toast notification using widget content, ctx or any variable in for example a Custom Action HTML?
Thanks and have a good weekend!

@nicovon24 nicovon24 added the question generic question label May 18, 2024
@devaskim
Copy link
Contributor

Details on toast API is here

    self.ctx.showToast('success', 'Toast message', 3000, 'top', 'center', 'dashboardRoot');

As a toast parent you can use either self.ctx.toastTargetId or dashboardRoot (last argument in the example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question generic question
Projects
None yet
Development

No branches or pull requests

3 participants