Table of Contents

Class SelectComponent

Namespace: Casewhere.Models.FormBuilder.Components
Assembly: Casewhere.Models.dll

Represents a select component in a form.

public class SelectComponent : FormDataComponent, INgModelOptions

Inheritance

objectFormComponentFormDataComponentSelectComponent

Implements

INgModelOptions

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

ListComponentDataSource

Remarks

If the data source is configured, then the option items will be ignored.

ItemTemplate

public string ItemTemplate { get; set; }

Property Value

string

OptionItems

Gets or sets the list of option items for the select component.

public IList<OptionItem> OptionItems { get; set; }

Property Value

IList<OptionItem>

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

IList<ComponentDataBinding>

Placeholder

Gets or sets the placeholder text for the select component.

public string Placeholder { get; set; }

Property Value

string

Select2Options

public string Select2Options { get; set; }

Property Value

string