This repository has been archived by the owner on Dec 24, 2019. It is now read-only.
Version 6.3.0
This release enables notifications to be programmatically dismissed in a notification stack, preserving the slide-out animation. A deactivate
callback is passed as a parameter to onClick
. When this is called, the animation will deactivate, preserving animation.
onClick: (deactivate) => {
deactivate();
setTimeout(() => this.removeNotification('some UID'), 400);
}
There is a more complete example in the README. Thanks to @ecfairle for the PR. 😄