TabPanelContext
Namespace: Hex1b.Widgets
Assembly: Hex1b.dll
Provides a fluent API context for building TabPanel structures. This context exposes tab-creation methods (Tab) to guide developers toward the correct API usage.
csharp
public readonly struct TabPanelContextMethods
Tab(string, Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>>)
Creates a tab with the specified title and content builder.
Parameters:
title(String): The title displayed in the tab header.contentBuilder(Func<VStackWidget>, Hex1bWidget>>): A function that builds the tab content widgets.
Returns: TabItemWidget
A TabItemWidget configured with the specified title and content.
csharp
public TabItemWidget Tab(string title, Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>> contentBuilder)Tab(string, string, Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>>)
Creates a tab with the specified title, icon, and content builder.
Parameters:
title(String): The title displayed in the tab header.icon(String): The icon displayed before the title.contentBuilder(Func<VStackWidget>, Hex1bWidget>>): A function that builds the tab content widgets.
Returns: TabItemWidget
A TabItemWidget configured with the specified title, icon, and content.
csharp
public TabItemWidget Tab(string title, string icon, Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>> contentBuilder)