1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-22 10:21:36 +03:00
Ghost/ghost/admin/app/components/tabs/tab-panel.hbs
Elena Baidakova f1e476d6af
Add forceRender property to tabs ()
closes 
- `forceRender` property adds ability to render content of tabs in
advance (even if tab wasn't selected)
2022-10-26 18:03:29 +01:00

12 lines
267 B
Handlebars

<div
id="{{this.tabId}}-panel"
role="tabpanel"
tabindex="0"
aria-labelledby="{{this.tabId}}"
class="tab-panel {{if this.isSelectedTab "tab-panel-selected" }}"
>
{{#if (or this.isSelectedTab @forceRender)}}
{{yield}}
{{/if}}
</div>