TabPanelExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for building TabPanel widgets.
csharp
public static class TabPanelExtensionsInheritance
Object → TabPanelExtensions
Methods
TabPanel<TParent>(WidgetContext<TParent>, Func<TabPanelContext, IEnumerable<TabItemWidget>>)
Creates a TabPanel widget using a builder pattern.
Parameters:
ctx(WidgetContext<<TParent>>): The widget context.builder(Func<TabPanelContext, TabItemWidget>>): A function that builds the tabs using a TabPanelContext.
Returns: TabPanelWidget
A TabPanelWidget.
csharp
public static TabPanelWidget TabPanel<TParent>(this WidgetContext<TParent> ctx, Func<TabPanelContext, IEnumerable<TabItemWidget>> builder) where TParent : Hex1bWidgetTabPanel<TParent>(WidgetContext<TParent>, IEnumerable<TabItemWidget>)
Creates a TabPanel widget with pre-built tabs.
Parameters:
ctx(WidgetContext<<TParent>>): The widget context.tabs(IEnumerable<TabItemWidget>): The tabs to display.
Returns: TabPanelWidget
A TabPanelWidget.
csharp
public static TabPanelWidget TabPanel<TParent>(this WidgetContext<TParent> ctx, IEnumerable<TabItemWidget> tabs) where TParent : Hex1bWidget