You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Layout/Content.php <section class="content"> <?php //Alert::widget() ?> <?= Wrapper::widget([ 'layerClass' => 'lo\modules\noty\layers\JqueryToastPlugin', // default options 'options' => [ 'showHideTransition' => 'slide', // It can be plain, fade or slide 'allowToastClose' => 'true', // Show the close button or not 'hideAfter' => 10000, // falseto make it sticky or time in miliseconds to hide after 'stack' => 5, //false` to show one stack at a time count showing the number of toasts that can be shown at once
'position' => 'bottom-right', // bottom-left or bottom-right or bottom-center or top-left or top-right or top-center or mid-center or an object representing the left, right, top, bottom values to position the toast on page
// and more for this library here https://github.com/kamranahmedse/jquery-toast-plugin
],
]) ?>
<?= $content ?>
</section>`
Controller.php
ActionIndex
`public function actionIndex()
{
Yii::$app->session->setFlash('warning', 'noty warning');
return $this->render('index', [
]);
}`
View Error return array
The text was updated successfully, but these errors were encountered:
Error
return [ 'Cancel' => 'Hủy', 'Confirmation Needed' => 'Yêu cầu xác nhận', 'Error' => 'Có lỗi', 'Info' => 'Thông tin', 'Ok' => 'Tốt', 'Question' => 'Câu hỏi', 'Success' => 'Thành công', 'Warning' => 'Cảnh báo', ];
Layout/Content.php
<section class="content"> <?php //Alert::widget() ?> <?= Wrapper::widget([ 'layerClass' => 'lo\modules\noty\layers\JqueryToastPlugin', // default options 'options' => [ 'showHideTransition' => 'slide', // It can be plain, fade or slide 'allowToastClose' => 'true', // Show the close button or not 'hideAfter' => 10000, //
falseto make it sticky or time in miliseconds to hide after 'stack' => 5, //
false` to show one stack at a time count showing the number of toasts that can be shown at once'position' => 'bottom-right', // bottom-left or bottom-right or bottom-center or top-left or top-right or top-center or mid-center or an object representing the left, right, top, bottom values to position the toast on page
Controller.php
ActionIndex
`public function actionIndex()
{
Yii::$app->session->setFlash('warning', 'noty warning');
View Error return array
The text was updated successfully, but these errors were encountered: