question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: optional close icon for messages

See original GitHub issue

What problem does this feature solve?

Real use case: a user creates a new API key, we generate a key, show it to him and redirect to the list of API keys. The key will be shown only once, so it’s not visible on any specific page where I could’ve used <Alert>. I set the duration to 0 because it will be shown only once. But once user copied/saved the key it can close the message. It would be great to have optional “X” icon like Alerts have.

What does the proposed API look like?

const closable = true;
message.info("Message", 0, closable);

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AryaBuddhacommented, Jul 6, 2022

Could you not just use a <Notification> instead? Has all the same features of a message and it’s closeable.

0reactions
csandanovcommented, Jul 8, 2022

I’m not sure so does it support the middle placement or not?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Option to display Message icon instead of the new Notification ...
Feature Request : Option to display Message icon instead of the new Notification feature. Old vs new comparison.
Read more >
Feature Request for a customize option to send follow up emails
Hi, I would like to request for a customize option to send follow up emails, where I can pick the specific date when...
Read more >
How to Hide Message Button on Facebook ... - YouTube
Learn How to Hide Message Button on Facebook! (Disable Message Option )In this video I show you how to hide your message button...
Read more >
Send feedback or suggest a feature - Microsoft Support
Send feedback or suggest a feature · Tap your profile picture. · Tap Settings Settings button . · Tap Help & feedback Teams...
Read more >
Can't turn on chat features - Messages Help - Google Support
Check your Chat Features status: Open the Messages app . ... (Optional) Check the Carrier Services app version: Most devices come with Carrier...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found