Download the PHP package occ2/flashes without Composer
On this page you can find all versions of the php package occ2/flashes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor occ2
Package flashes
Short Description Extra contribute of Nette Application flash messages with Bootstrap4 alert style
License MIT
Package flashes
Short Description Extra contribute of Nette Application flash messages with Bootstrap4 alert style
License MIT
Please rate this library. Is it a good library?
Informations about the package flashes
occ2/flashes
This package is extra contrib of nette/application flash messages. It use Twitter Bootstrap4 styles (alert). If you need use it please move flashes.latte into your application template directory (or your Control template directory)
Installation:
composer require occ2/flashes
Usage:
In presenter
<?php
namespace MyApp\Presenters;
use Nette\Application\UI\Presenter
class MyPresenter extends Presenter{
use TFlashMessage;
public function handleSomething(){
... // some code
$this->flashMessage("Error message","danger", "some comment of message", "fa fas-cross", 75, "xl", 10);
if($this->isAjax(){
$this->redrawControl();
}
else{
$this->redirect("this");
}
}
}
Params of flashMessage() function
- $message - alert title
- $type - alert type (success, primary, info, warning, danger)
- $comment - comment of message
- $icon - icon class (for example from Font Awesome)
- $width - alert width (relative - may be 25,50,75,100)
- $size - icon size prefix (may be xs, sm, lg, xl)
- $delay - number of seconds to autohide flash message
All versions of flashes with dependencies
PHP Build Version
Package Version
The package occ2/flashes contains the following files
Loading the files please wait ....