4.3.0
Changelog
BREAKING CHANGES
- Removed
replaceEnabled
in favor of alert queue. - Removed
useAnimationLock
because it would block alerts from opening during another alert's animation.
FEATURES
- Introducing: alert queue. This provides ability to invoke
alertWithType
multiple times to enqueue a series of alerts. They are presented in FIFO (first in, first out) order and display until the queue is empty. Example:
_createAlertQueue = () => {
const types = ['info', 'warn', 'error', 'success', 'custom'];
const message = 'message';
let count = 1;
// queuing a series of alerts
types.map(type => {
this.dropDownAlertRef.alertWithType(
type,
`Alert ${count} of ${types.length}`,
message,
);
count++;
});
};
// get queue size programmatically:
_getQueueSize = () => {
const queueSize = this.dropDownAlertRef.getQueueSize();
console.log(`current queue size is ${queueSize}`);
};
// clear queue programmatically:
_clearQueue = () => {
this.dropDownAlertRef.clearQueue();
};
FIXES
- StatusBar not updating itself after close.