feat: add snackbar to pdf#3478
Conversation
|
@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 👍🏼 |
|
✅ All checks succeeded |
2 similar comments
|
✅ All checks succeeded |
|
✅ All checks succeeded |
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 |
No description provided.