Skip to content

Commit 170c0da

Browse files
committed
Update Toast.php
1 parent c1260e7 commit 170c0da

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Ajax/semantic/components/Toast.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,52 @@ public function close(){
2525

2626
public function setClass($value){
2727
$this->params['class']=$value;
28+
return $this;
2829
}
2930

3031
public function setCloseIcon(){
3132
$this->params['closeIcon']=true;
33+
return $this;
3234
}
3335

3436
public function setShowIcon($value=false){
3537
$this->params['showIcon']=$value;
38+
return $this;
3639
}
3740

3841
public function setCloseOnClick($value){
3942
$this->params['closeOnClick']=$value;
43+
return $this;
4044
}
45+
4146
public function setTitle($title){
4247
$this->params['title']=$title;
48+
return $this;
4349
}
4450

4551
public function setMessage($message){
4652
$this->params['message']=$message;
53+
return $this;
54+
}
55+
56+
public function setPosition($position){
57+
$this->params['position']=$position;
58+
return $this;
4759
}
4860

4961
public function setDisplayTime($time){
5062
$this->params['displayTime']=$time;
63+
return $this;
5164
}
5265

5366
public function setShowProgress($value='top'){
5467
$this->params['showProgress']=$value;
68+
return $this;
5569
}
5670

5771
public function setClassProgress($value){
5872
$this->params['classProgress']=$value;
73+
return $this;
5974
}
6075

6176
public function setOnShow($jsCode) {
@@ -64,13 +79,16 @@ public function setOnShow($jsCode) {
6479

6580
public function setOnHide($jsCode) {
6681
$this->addComponentEvent('onHide', $jsCode);
82+
return $this;
6783
}
6884

6985
public function setOnApprove($jsCode) {
7086
$this->addComponentEvent('onApprove', $jsCode);
87+
return $this;
7188
}
7289

7390
public function setOnDeny($jsCode) {
7491
$this->addComponentEvent('onDeny', $jsCode);
92+
return $this;
7593
}
7694
}

0 commit comments

Comments
 (0)