Skip to content

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 TabPanelContext

Methods

Tab(string, Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>>)

Creates a tab with the specified title and content builder.

Parameters:

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:

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)

Released under the MIT License.