- Add option in function toaster.pop() ,
toastId
to define 'uid', use the function 'toaster.clear ()'
var _toaster = {
type: null,
title: null,
body: null,
timeout: null,
toasterId: 'CategoryMenu',
toastId: 'CategoryMenuAlert'
}
- Add option in function toaster.clear()
- toaster.clear(); --> clearAll with ToasterId = undefined;
- toaster.clear('*'); -> ClearAll()
- toaster.clear('clearID'); -> clearAll() with toaster have ToasterId = 'clearID'
- toaster.clear('clearID', 'toastID'); -> Just clearAll with toasts have uid = 'toastID' in ToasterId = 'clearID'.