19 declare(strict_types=1);
50 $this->setAdditionalTransformation(
51 $refinery->string()->stripTags()
64 $this->
refinery->string()->hasMaxLength($max_limit)
88 $this->
refinery->string()->hasMinLength($min_limit)
108 return is_string($value);
116 if ($this->requirement_constraint !== null) {
117 return $this->requirement_constraint;
120 if ($this->min_limit) {
121 return $this->
refinery->string()->hasMinLength($this->min_limit);
123 return $this->
refinery->string()->hasMinLength(1);
131 return $this->min_limit > 0 || $this->max_limit > 0;
139 return fn (
$id) =>
"$('#$id').on('input', function(event) { 140 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val()); 142 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val());";
__construct(DataFactory $data_factory, \ILIAS\Refinery\Factory $refinery, string $label, ?string $byline)
isClientSideValueOk($value)
Class ChatMainBarProvider .
This implements the textarea input.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
A constraint encodes some resrtictions on values.
getUpdateOnLoadCode()
Get update code.This method has to return JS code that calls il.UI.filter.onFieldUpdate(event, '$id', string_value);initially "onload" andon every input change. It must pass a readable string representation of its value in parameter 'string_value'.
getConstraintForRequirement()
This describes Textarea inputs.
__construct(Container $dic, ilPlugin $plugin)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
getMinLimit()
get minimum limit of characters
getMaxLimit()
get maximum limit of characters
Refinery Factory $refinery