Class DropdownWidgetController
A recyclable widget controller for dropdown selection inputs.
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class DropdownWidgetController : RecyclableWidgetController
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(ContentWidget)
Declaration
public override void Build(ContentWidget destination)
Parameters
Type | Name | Description |
---|---|---|
ContentWidget | destination |
Overrides
Recycle()
Declaration
public override void Recycle()