Skip to content

feat: add snackbar to pdf#3478

Merged
MSzalowski merged 1 commit into
developfrom
feat/add-snackbar-to-pdf
Apr 16, 2025
Merged

feat: add snackbar to pdf#3478
MSzalowski merged 1 commit into
developfrom
feat/add-snackbar-to-pdf

Conversation

@MSzalowski
Copy link
Copy Markdown
Contributor

No description provided.

@MSzalowski MSzalowski requested a review from Ryun1 as a code owner April 16, 2025 06:59
@MSzalowski MSzalowski requested a review from vpaunovic April 16, 2025 07:00
@vpaunovic
Copy link
Copy Markdown

@MSzalowski Can you just paste here example how for example addSuccessAlert will be used in PDF? Just a simple example so we have it here for reference.

BTW - thank you, this will be useful for things that we are doing for the authenticating - to let users result state of the action 👍🏼

@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

2 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

@MSzalowski
Copy link
Copy Markdown
Contributor Author

@MSzalowski Can you just paste here example how for example addSuccessAlert will be used in PDF? Just a simple example so we have it here for reference.

BTW - thank you, this will be useful for things that we are doing for the authenticating - to let users result state of the action 👍🏼

Sure!

addSuccessAlert("Copied to clipboard", 2000); // This will show snackbar on top of the GovTool displaying "Copied to clipboard" for 2s (Default duration is 2000)

addErrorAlert("Something went wrong"); // This will show error-styled snackbar on top of the GovTool displaying "Something went wrong" for 2s (Default duration is 2000) 

addChangesSavedAlert(); // This will show success allert on top of  the GovTool displaying "Changes saved" - pre defined success alert

addWarningAlert("Something went wrong"); // This will show warning-styled snackbar on top of the GovTool displaying "Something went wrong" for 2s (Default duration is 2000)

In general the API is add<SomeSnackbarType>(message, duration) where duration is optional as it defaults to 2s (2000)

@MSzalowski MSzalowski merged commit 701c166 into develop Apr 16, 2025
8 checks passed
@MSzalowski MSzalowski deleted the feat/add-snackbar-to-pdf branch April 16, 2025 08:08
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.

3 participants