Hi,
I spent some time to find the reason but no success. I have checkbox list on my page with one checkbox and it works nicely until I try to set the defaults parameters
After that it blocks all changes - I can tot change the checkbox value - it returns to the default every time.
Code:
CheckBoxList::create(array(
"name" => "viewVsbox",
"data" => array(
"vs" => "2",
),
));
use \koolreport\inputs\Bindable;
use \koolreport\inputs\POSTBinding;
protected function defaultParamValues()
{
return array(
"viewVs" => array('2'),
);
}
protected function bindParamsToInputs()
{
return array(
"viewVs" => "viewVsbox",
);
}
UPD I noticed if I set an empty array as a default value (means the checkbox is off) I can change the settings after that but if I set it like in my code I can not.