ui.util.map

Apply given component to the list of items. Use it to render multiple similar elements, that have different content.

{%- call ui.util.call(show_example) -%} {%- raw %} {{ ui.util.map(ui.button, ["Click", "Press", "Push"]) }} {%- endraw %} {%- endcall %}

The rest of arguments will be passed to every individual component call.

{%- call ui.util.call(show_example) -%} {%- raw %} {{ ui.util.map(ui.button, ["Click", "Press", "Push"], style="danger") }} {%- endraw %} {%- endcall %}