@namespace Connected.Components @inherits UIComponent
@if (HeaderPosition == TabHeaderPosition.Before && Header != null) {
@Header(this)
} @if (_showScrollButtons) {
}
@foreach (TabPanel panel in _panels) { @if (panel.TabContent == null && panel.TabWrapperContent == null) { @RenderTab(panel) } else { if (panel.TabWrapperContent == null) {
@RenderTab(panel)
} else {
@panel.TabWrapperContent(RenderTab(panel))
} } } @if (!HideSlider) {
}
@if (_showScrollButtons) {
} @if (HeaderPosition == TabHeaderPosition.After && Header != null) {
@Header(this)
}
@if (PrePanelContent != null) { @PrePanelContent(ActivePanel) }
@ChildContent
@code { RenderFragment RenderTab(TabPanel panel) => @
ActivatePanel(panel, e, false) )> @if (TabPanelHeaderPosition == TabHeaderPosition.Before && TabPanelHeader != null) {
@TabPanelHeader(panel)
} @if (panel.TabContent != null) { @panel.TabContent } else if (!String.IsNullOrEmpty(panel.Text) && String.IsNullOrEmpty(panel.Icon)) { @((MarkupString)panel.Text) } else if (String.IsNullOrEmpty(panel.Text) && !String.IsNullOrEmpty(panel.Icon)) { } else if (!String.IsNullOrEmpty(panel.Text) && !String.IsNullOrEmpty(panel.Icon)) { @((MarkupString)panel.Text) } @if (panel.BadgeData != null || panel.BadgeDot) { } @if (TabPanelHeaderPosition == TabHeaderPosition.After && TabPanelHeader != null) {
@TabPanelHeader(panel)
}
; }