26 $this->_template=
'<div id="%identifier%" %properties%>%button%%content%</div>';
31 $this->content=$message;
42 return $this->
addToPropertyCtrl(
"class", CssRef::getStyle($cssStyle,
"alert"), CssRef::Styles(
"alert"));
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;
bootstrap(Bootstrap $bootstrap=NULL)
getter or setter of the Twitter Bootstrap variable
Twitter Bootstrap Alert component.
run(JsUtils $js)
SimpleExtComponent\Ajax\common\html\BaseHtmlrun()\Ajax\common\html\BaseHtmlrun()
setStyle($cssStyle)
define the alert style avaible values : "alert-success","alert-info","alert-warning",...
__construct($identifier, $message=NULL, $cssStyle="alert-warning")
compile(JsUtils $js=NULL, &$view=NULL)
Default HTML values for Twitter Bootstrap HTML components.
addEvent($event, $jsCode, $stopPropagation=false, $preventDefault=false)
addEventsOnRun(JsUtils $js=NULL)
addToPropertyCtrl($name, $value, $typeCtrl)