18 parent::__construct(
$js);
19 $this->uiName=
'toast';
27 $this->params[
'class']=$value;
32 $this->params[
'closeIcon']=
true;
37 $this->params[
'showIcon']=$value;
42 $this->params[
'preserveHTML']=$value;
47 $this->params[
'closeOnClick']=$value;
52 $this->params[
'title']=$title;
57 foreach ($actions as &$action){
58 if(isset($action[
'click'])){
59 $js=\str_ireplace(
"\"",
"%quote%", $action[
'click']);
60 $action[
'click']=
"%function(){".$js.
"}%";
63 $this->params[
'actions']=$actions;
64 if(count($actions)>0) {
65 $this->params[
'displayTime'] = 0;
71 $this->params[
'message']=$message;
76 $this->params[
'position']=$position;
81 $this->params[
'displayTime']=$time;
86 $this->params[
'showProgress']=$value;
91 $this->params[
'classProgress']=$value;
addComponentEvent($event, $jsCode)
Ajax\semantic\components$Toast This class is part of phpMv-ui.
setShowIcon($value=false)
setActions(array $actions)
__construct(JsUtils $js=NULL)
setPreserveHTML($value=false)
setShowProgress($value='top')