ICheckBox : add attribute to allow to select checkbox thanks its attribute

with the js select_checkbox_attribute
This commit is contained in:
Dany De Bontridder 2017-12-16 12:27:26 +01:00
parent 4fd8bcb2d3
commit 66d68954db
3 changed files with 54 additions and 0 deletions

View file

@ -36,6 +36,7 @@ class ICheckBox extends HtmlInput
$check=( $this->selected==true )?"checked":"unchecked";
$r='<input type="CHECKBOX" id="'.$this->id.'" name="'.$this->name.'"'.' value="'.$this->value.'"';
$r.=" $check";
$r.=$this->get_node_attribute();
$r.=' '.$this->disabled." ".$this->javascript.'>';
$r=$r." $this->label";