Class ListItemWidgetBuilder<T>
A recyclable widget builder for building list item widgets.
Implements
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class ListItemWidgetBuilder<T> : IRecyclableWidgetBuilder
Type Parameters
Name | Description |
---|---|
T | Any type, used as a data tag associated with the list item widget. |
Properties
Callback
Gets or sets a callback to execute when
Declaration
public Action<T>? Callback { get; set; }
Property Value
Type | Description |
---|---|
Action<T> |
Data
Gets or sets a value of type T
representing the list item's actual data value.
Declaration
public T Data { get; set; }
Property Value
Type | Description |
---|---|
T |
Description
Gets or sets a text description of the list item.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Image
Gets or sets an instance of IRecyclableWidgetBuilder to render into the list item's image slot.
Declaration
public IRecyclableWidgetBuilder? Image { get; set; }
Property Value
Type | Description |
---|---|
IRecyclableWidgetBuilder |
Selected
Gets or sets a value indicating whether the list item is selected.
Declaration
public bool Selected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Title
Gets or sets the title of the list item.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
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. |