Revision #3 was created by Scott_Huang on Apr 24, 2015, 3:32:30 PM.
Add timer and mouse_over option
Content
**I leverage Kartik's notification widgets.**
And try to wrap the notification to own quickly static function for easy revoke. The type[info, success, warning, danger] will according **title text** to auto change. Also add timer and mouse_over option.
The below code block contain 3 small functions, you can put into Yourclass.
[...]
* @param array $additional parameters which you may want to change.
*/ public static function showMsg($title = 'info', $body = 'info msg', $additional = [])
{
if ($additional['useSessionFlash']) {
$flashes = \yii::$app->session->getAllFlashes(true);
if ($delay == 0 and $additional['alertType']=="Alert") $delay += 2000;