Skip to content

ModifiableMultiSelect

ModifiableMultiSelect element represents an input in which user can put any value. You can use this element for tags or labels.

TODO dodać screen jak to wygląda, gdy już konfigurator bedzie gotowy

Build-in Validators

Element does not have build-in validators.

Available Validators

Element does not have available validators.

Relations Support

Element does not support relations between elements.

Configuration output schema

schema
{
  "<element_type>" : "modifiableMultiSelect",
  "<element_name>" : string,
  "<element_label>" : string,
  "<element_labelDescription>" : string,
  "<element_isRequired>" : bool,
  "<element_isHidden>" : bool,
  "<element_defaultValue>" : array
}
example
{
  "type" : "modifiableMultiSelect",
  "name" : "tags",
  "label" : "Tags",
  "defaultValue" : ["Fantasy", "Horror", "Thriller"]
}

Element value

usage in module TWIG
{% if moduleConfig.tags %}
   <ul>
        {% for tag in moduleConfig.tags %}
            <li>{{ tag }}</li>
        {% endfor %}
   </ul>
{% endif %}
html output
<ul>
    <li>Fantasy</li>
    <li>Horror</li>
    <li>Thriller</li>
</ul>