32 $this->setAdditionalTransformation(
33 $refinery->string()->stripTags()
45 $this->refinery->string()->hasMaxLength(
$max_limit)
57 return $this->max_limit;
68 $this->refinery->string()->hasMinLength(
$min_limit)
80 return $this->min_limit;
88 return is_string($value);
97 if ($this->min_limit) {
98 return $this->refinery->string()->hasMinLength($this->min_limit);
100 return $this->refinery->string()->hasMinLength(1);
108 if ($this->min_limit || $this->max_limit) {
119 return function ($id) {
120 $code =
"$('#$id').on('input', function(event) { 121 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val()); 123 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val());";
isClientSideValueOk($value)
Class ChatMainBarProvider .
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
withMinLimit($min_limit)
set minimum number of characters
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'.string
getConstraintForRequirement()
__construct(DataFactory $data_factory, \ILIAS\Refinery\Factory $refinery, $label, $byline)
This describes Textarea inputs.
withMaxLimit($max_limit)
set maximum number of characters
__construct(Container $dic, ilPlugin $plugin)
getMinLimit()
get minimum limit of characters
getMaxLimit()
get maximum limit of characters