14 class Text extends Input implements C\Input\Field\Text
26 $this->setAdditionalTransformation($refinery->custom()->transformation(
function ($v) {
27 return strip_tags($v);
36 return is_string($value);
45 return $this->refinery->string()->hasMinLength(1);
53 return function ($id) {
54 $code =
"$('#$id').on('input', function(event) { 55 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val()); 57 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val());";
Class ChatMainBarProvider .
__construct(DataFactory $data_factory, \ILIAS\Refinery\Factory $refinery, $label, $byline)
isClientSideValueOk($value)
This describes text inputs.
__construct(Container $dic, ilPlugin $plugin)
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()