Skip to content

Conversation

fetrarij
Copy link

Add ability to set the notification duration and the persistence.

We're using this components in our project and need some customization like this one: we can choose if the notification is persistent or not, if not, for how long it should be shown?

Usage:

$notification.info(title, content, duration, userData);

Duration is optional (milliseconds): It allows you to set how long the notification is shown. Put 0 or false if you want a persistent notification. If not given it take the value in the setting (5000).

@pdf
Copy link

pdf commented Jan 23, 2014

Inserting duration before userData will break existing users' code.

@fetrarij fetrarij closed this Jan 25, 2014
@fetrarij fetrarij deleted the duration branch January 25, 2014 06:00
@fetrarij
Copy link
Author

Thank you, I put the duration before userData because we don't use the userData and facilitates the function call in our local project.
I'll create one.

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.

2 participants