illagrenan / nette-bootstrap-alert-control
Nette komponenta pro výpis Twitter Bootstrap alertů
Package info
github.com/illagrenan/nette-bootstrap-alert-control
pkg:composer/illagrenan/nette-bootstrap-alert-control
v0.0.1
2013-03-25 11:25 UTC
Requires
- php: >=5.3.0
- eloquent/enumeration: @dev
- illagrenan/nette-base-control: dev-master
- nette/nette: @dev
This package is not auto-updated.
Last update: 2026-02-28 20:13:43 UTC
README
Licence: MIT
{
"require": {
"illagrenan/nette-bootstrap-alert-control": "dev-master"
}
}
Závislosti:
Použití
Vytvoření komponenty v presenteru
<?php protected function createComponentTWAlerts($name) { $twAlerts = new \Illagrenan\BootstrapAlert\BootstrapAlert($this, $name); return $twAlerts; } ?>
Použití v šabloně
{* Bude vykresleno jako blok *}
{widget tWAlerts "Na druhou kolej přijel osobní vlak z Pardubic", "Upozornění pro cestující", \Illagrenan\BootstrapAlert\AlertType::INFO()}
{* Vykreslíme inline s defaultním stylem "Warning" *}
{widget tWAlerts "Natala neznámá chyba"}