Class SelectComponent
Namespace: Casewhere.Models.FormBuilder.Components
Assembly: Casewhere.Models.dll
Represents a select component in a form.
public class SelectComponent : FormDataComponent, INgModelOptions
Inheritance
object ← FormComponent ← FormDataComponent ← SelectComponent
Implements
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<SelectComponent>(SelectComponent)
Constructors
SelectComponent()
public SelectComponent()
Properties
DataSource
Gets or sets the data source for the select component.
public ListComponentDataSource DataSource { get; set; }
Property Value
Remarks
If the data source is configured, then the option items will be ignored.
ItemTemplate
public string ItemTemplate { get; set; }
Property Value
OptionItems
Gets or sets the list of option items for the select component.
public IList<OptionItem> OptionItems { get; set; }
Property Value
Remarks
This property is used for concrete values that are not associated with data objects. If the data source is configured, then the option items will be ignored.
Parameters
If data source has a parameter, the data source data binding is used to config it
public IList<ComponentDataBinding> Parameters { get; set; }
Property Value
Placeholder
Gets or sets the placeholder text for the select component.
public string Placeholder { get; set; }
Property Value
Select2Options
public string Select2Options { get; set; }