Class SettingsFieldWidgetBuilder
A recyclable widget builder for building settings fields.
Implements
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling.SettingsWidgets
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class SettingsFieldWidgetBuilder : IRecyclableWidgetBuilder
Properties
ClickCallback
Gets or sets a callback to be executed when the field is clicked.
Declaration
public Action? ClickCallback { get; set; }
Property Value
Type | Description |
---|---|
Action |
Description
Gets or sets the field's description.
Declaration
public string? Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Slot
Gets or sets an instance of IRecyclableWidgetBuilder representing a widget to be rendered inside the settings field's input slot.
Declaration
public IRecyclableWidgetBuilder? Slot { get; set; }
Property Value
Type | Description |
---|---|
IRecyclableWidgetBuilder |
Title
Gets or sets the title of the field.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
UseReverseLayout
Gets or sets a value indicating whether the field should be rendered with reverse layout.
Declaration
public bool UseReverseLayout { get; set; }
Property Value
Type | Description |
---|---|
bool |
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. |