45 return $this->options;
53 if (is_null($value)) {
56 if (is_array($value)) {
57 foreach ($value as $v) {
58 if (!array_key_exists($v, $this->options)) {
72 $constraint = $this->refinery->custom()->constraint(
74 return (is_array($value) && count($value) > 0);
86 return function ($id) {
87 $code =
"var checkedBoxes = function() { 89 var options_combined = []; 90 $('#$id').find('input').each(function() { 91 options[$(this).val()] = $(this).prop('checked').toString(); 93 for (let [key, value] of Object.entries(options)) { 94 options_combined.push(key + ': ' + value); 96 return options_combined.join(', '); 98 $('#$id').on('input', function(event) { 99 il.UI.input.onFieldUpdate(event, '$id', checkedBoxes()); 101 il.UI.input.onFieldUpdate(event, '$id', checkedBoxes()); Class ChatMainBarProvider .
__construct(Container $dic, ilPlugin $plugin)