Ghost/ghost/admin/app/components/tabs/tabs.hbs
Elena Baidakova f1e476d6af
Add forceRender property to tabs (#15699)
closes TryGhost/Team#2163
- `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

32 lines
756 B
Handlebars

<div ...attributes>
<div
role="tablist"
class="tab-list"
>
{{yield
(hash
tab=(
component "tabs/tab"
selectedIndex=this.selectedIndex
onSelect=this.handleSelect
onKeyup=this.handleKeyup
id=this.addTabId
index=this.addTabIndex
)
)
}}
</div>
{{yield
(hash
tabPanel=(
component "tabs/tab-panel"
selectedIndex=this.selectedIndex
index=this.addPanelIndex
tabIds=this.tabIds
forceRender=@forceRender
)
)
}}
</div>