Class DropdownWidgetBuilder
A recyclable widget builder for building dropdowns.
Implements
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class DropdownWidgetBuilder : IRecyclableWidgetBuilder
  Properties
Callback
Gets or sets a callback to execute when the current option is changed.
Declaration
public Action<int>? Callback { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Action<int> | 
Choices
Gets or sets an array of strings representing the choices available in the dropdown.
Declaration
public string[] Choices { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string[] | 
CurrentIndex
Gets or sets the index into the Choices array of the currently selected option.
Declaration
public int CurrentIndex { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
Methods
Build()
Create a RecyclableWidgetController based on this widget builder's properties.
Declaration
public RecyclableWidgetController Build()
  Returns
| Type | Description | 
|---|---|
| RecyclableWidgetController | A new instance of RecyclableWidgetController.  |