AccordionContext
Namespace: Hex1b.Widgets
Assembly: Hex1b.dll
Provides a fluent API context for building Accordion structures. This context exposes section-creation methods to guide developers toward the correct API usage.
csharp
public readonly struct AccordionContextMethods
Section(Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>>)
Creates a section with the specified content builder. Use to set the section title.
Parameters:
contentBuilder(Func<VStackWidget>, Hex1bWidget>>): A function that builds the section content widgets.
Returns: AccordionSectionWidget
An AccordionSectionWidget configured with the specified content.
csharp
public AccordionSectionWidget Section(Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>> contentBuilder)Section(string, Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>>)
Creates a section with the specified title and content builder.
Parameters:
title(String): The title displayed in the section header.contentBuilder(Func<VStackWidget>, Hex1bWidget>>): A function that builds the section content widgets.
Returns: AccordionSectionWidget
An AccordionSectionWidget configured with the specified title and content.
csharp
public AccordionSectionWidget Section(string title, Func<WidgetContext<VStackWidget>, IEnumerable<Hex1bWidget>> contentBuilder)