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

Plugins: Resolves #11579: Add Toast plugin API #11583

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Conversation

laurent22
Copy link
Owner

@laurent22 laurent22 commented Jan 5, 2025

const dialogs = joplin.views.dialogs;

setTimeout(() => {
	dialogs.showToast({
		message: 'This is an info message',
	});
}, 5000);

setTimeout(() => {
	dialogs.showToast({
		type: ToastType.Error,
		message: 'This is an error message',
	});
}, 7000);

setTimeout(() => {
	dialogs.showToast({
		type: ToastType.Success,
		message: 'This is a success message',
	});
}, 9000);

@laurent22 laurent22 merged commit 8990dec into dev Jan 6, 2025
13 checks passed
@laurent22 laurent22 deleted the toast_notification branch January 6, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant