phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Checkbox.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use Ajax\JsUtils;
6 
8 
9  public function __construct(JsUtils $js) {
10  parent::__construct($js);
11  $this->uiName="checkbox";
12  }
13 
14  public function setOnChecked($value) {
15  $this->params["onChecked"]="%function(){".$value."}%";
16  }
17 
18  public function setOnUnchecked($value) {
19  $this->params["onUnchecked"]="%function(){".$value."}%";
20  }
21 
22  public function setOnChange($value){
23  $this->params["onChange"]="%function(){".$value."}%";
24  }
25 }
JQuery PHP library.
Definition: JsUtils.php:23