26 $this->_template=
'<div id="%identifier%" %properties%>%button%%content%</div>';
31 $this->content=$message;
49 "data-dismiss" =>
"alert",
50 "aria-label" =>
"close" 52 $button->setValue(
'<span aria-hidden="true">×</span>');
60 return $this->
addEvent(
"close.bs.alert", $jsCode);
68 $this->_bsComponent=$js->
bootstrap()->generic(
"#".$this->identifier);
74 return "$('#".$this->identifier.
"').alert('close');";
82 if ($this->closeable&&$this->button===
"") {
85 return parent::compile($js, $view);
94 $this->content=$message;
Twitter Bootstrap Alert component.
addEventsOnRun(JsUtils $js=NULL)
__construct($identifier, $message=NULL, $cssStyle="alert-warning")
setStyle($cssStyle)
define the alert style avaible values : "alert-success","alert-info","alert-warning","alert-danger"
bootstrap(Bootstrap $bootstrap=NULL)
getter or setter of the Twitter Bootstrap variable
static Styles($prefix="btn")
addEvent($event, $jsCode, $stopPropagation=false, $preventDefault=false)
static getStyle($cssStyle, $prefix)
return a valid style avaible values : "default","primary","success","info","warning","danger"
compile(JsUtils $js=NULL, &$view=NULL)
addToPropertyCtrl($name, $value, $typeCtrl)