54 $this->
lng = $DIC[
'lng'];
55 $this->glyph_factory =
$DIC->ui()->factory()->symbol()->glyph();
56 $this->button_factory =
$DIC->ui()->factory()->button();
57 $this->
renderer = $DIC[
'ui.renderer'];
58 $this->tpl =
$DIC[
'tpl'];
60 $this->validationRegexp =
"";
99 $submittedElements = $this->
getInput();
101 if ($submittedElements === [] && $this->
getRequired()) {
106 foreach ($submittedElements as $submittedValue) {
109 if ($this->
getRequired() && trim((
string) $submittedContentText) ===
"") {
125 public function render(
string $a_mode =
""): string
127 $tpl =
new ilTemplate(
"tpl.prop_multi_text_inp.html",
true,
true,
"components/ILIAS/TestQuestionPool");
141 $this->button_factory->shy(
'',
'')->withSymbol($this->glyph_factory->up())
144 $this->button_factory->shy(
'',
'')->withSymbol($this->glyph_factory->down())
157 " disabled=\"disabled\""
163 $this->button_factory->shy(
'',
'')->withSymbol($this->glyph_factory->add())
166 $this->button_factory->shy(
'',
'')->withSymbol($this->glyph_factory->remove())
177 .
'"fieldContainerSelector": ".ilWzdContainerText", '
178 .
'"reindexingRequiredElementsSelectors": ["input:text", "button"], '
179 .
'"handleRowCleanUpCallback": function(rowElem) {$(rowElem).find("input:text").val("")}'
181 $this->tpl->addJavascript(
"assets/js/answerwizardinput.js");
182 $this->tpl->addJavascript(
"assets/js/identifiedwizardinput.js");
183 $this->tpl->addOnLoadCode(
"$.extend({}, AnswerWizardInput, IdentifiedWizardInput).init({$config});");
199 return (
bool) strlen(
$value);
Builds a Color from either hex- or rgb values.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
valueHasContentText($value)
ButtonFactory $button_factory
setEditElementOccuranceEnabled($editElementOccuranceEnabled)
ilGlobalTemplateInterface $tpl
render(string $a_mode="")
isEditElementOrderEnabled()
fetchContentTextFromValue($value)
isEditElementOccuranceEnabled()
GlyphFactory $glyph_factory
$editElementOccuranceEnabled
__construct($a_title="", $a_postvar="")
Constructor.
setEditElementOrderEnabled($editElementOrderEnabled)
special template class to simplify handling of ITX/PEAR
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
This is how a factory for glyphs looks like.
An entity that renders components to a string output.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc