Skip to content

Commit

Permalink
ESY-6582 Tab can include src
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lilja committed Feb 25, 2025
1 parent 440162a commit f151561
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions _includes/tabs.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- comment -%}
**Parameters
tab_list(required): An array with items having the attributes title(required), content (required), include_src(optional)
tab_list(required): An array with items having the attributes title(required), content_text (required), content_src(optional)
active_tab_index(optional): Index of the tab to be active by default
{%- endcomment -%}

Expand All @@ -18,11 +18,12 @@
</div>
{% for tab in tabs %}
<p id="tab-content-{{ forloop.index }}" class="tab-content {% unless forloop.index == active_tab_index %}d-none{% endunless %}">
{{ tab.content }}
{% if tab.include_src %}
{{ tab.include_src }}
<!-- {% include tab.include_src %} -->
<!-- <iframe src="{{tab.include_src}}"></iframe> -->
{{ tab.content_text }}

{% if tab.content_src %}
{{ tab.content_src }}
<!-- {% include tab.content_src %} -->
<!-- <iframe src="{{tab.content_src}}"></iframe> -->
{% endif %}
</p>
{% endfor %}
Expand Down

0 comments on commit f151561

Please sign in to comment.