Table of Contents

Class MultipleSelectField<T>

Namespace
AbanoubNassem.Trinity.Fields
Assembly
AbanoubNassem.Trinity.dll

Represents a multiple select field that allows selecting multiple values of type T.

public class MultipleSelectField<T> : SelectField<T[]?>, ITrinityComponent, ITrinityField, IFormComponent

Type Parameters

T
Inheritance
MultipleSelectField<T>
Implements
Derived
Inherited Members

Constructors

MultipleSelectField(string, bool, int?)

Initializes a new instance of the MultipleSelectField<T> class with the specified column name, and optionally, the maximum number of selections allowed and the display mode.

public MultipleSelectField(string columnName, bool showAsChips = false, int? maxSelection = null)

Parameters

columnName string

The name of the column that this field represents.

showAsChips bool

Whether to display the selected values as chips. Default is false.

maxSelection int?

The maximum number of selections allowed, or null if there is no limit. Default is null.

Properties

Display

Gets the display mode for this field, or null if the default mode should be used.

public string? Display { get; protected set; }

Property Value

string

Multiple

Gets a value indicating whether this field allows selecting multiple values.

public bool Multiple { get; }

Property Value

bool

SelectionLimit

Gets the maximum number of selections allowed for this field, or null if there is no limit.

public int? SelectionLimit { get; protected set; }

Property Value

int?

Methods

Fill(ref Dictionary<string, object?>, IReadOnlyDictionary<string, object?>?)

Fills a form with data from a record for the field.

public override void Fill(ref Dictionary<string, object?> form, IReadOnlyDictionary<string, object?>? record = null)

Parameters

form Dictionary<string, object>

The form to fill.

record IReadOnlyDictionary<string, object>