Table of Contents

Class FormElementDataItem

Namespace
JJMasterData.Core.DataDictionary.Models
Assembly
JJMasterData.Core.dll

Configurações de objetos do tipo lista

public class FormElementDataItem
Inheritance
FormElementDataItem
Inherited Members

Remarks

2017-03-22 JJTeam

Properties

Command

Command executed to recover DataItemValues. Returns two columns:

  1. Id;
  2. Description.
[JsonProperty("command")]
public DataAccessCommand? Command { get; set; }

Property Value

DataAccessCommand

DataItemType

[JsonProperty("dataItemType")]
public DataItemType DataItemType { get; set; }

Property Value

DataItemType

ElementMap

Relationship with another Element to recover values

[JsonProperty("elementMap")]
public DataElementMap? ElementMap { get; set; }

Property Value

DataElementMap

EnableMultiSelect

[JsonProperty("enableMultiSelect")]
[Display(Name = "Enable Multi Select")]
public bool EnableMultiSelect { get; set; }

Property Value

bool

Remarks

Be careful when using this option. You should probably use this option only for WriteOnly fields or store the values in another table.

FirstOption

Exibir texto (Todos) como primeira opção (Default = NONE)

[JsonProperty("firstoption")]
[Display(Name = "First Option")]
public FirstOptionMode FirstOption { get; set; }

Property Value

FirstOptionMode

GridBehavior

[Display(Name = "Grid Behavior")]
[JsonProperty("gridBehavior")]
public DataItemGridBehavior GridBehavior { get; set; }

Property Value

DataItemGridBehavior

Items

[JsonProperty("itens")]
public List<DataItemValue>? Items { get; set; }

Property Value

List<DataItemValue>

RadioLayout

[JsonProperty("radioLayout")]
[Display(Name = "Layout")]
public DataItemRadioLayout? RadioLayout { get; set; }

Property Value

DataItemRadioLayout?

ShowIcon

Permite incluir imagens na lista como legendas

[JsonProperty("showimagelegend")]
[Display(Name = "Show Icon")]
public bool ShowIcon { get; set; }

Property Value

bool

Remarks

Exibir como Legenda inclui imagem nos componentes combobox e na grid.

Para exibir apenas a imagem de status na grid certifique-se a propriedade ReplaceTextOnGrid esta configurada para falso.

Methods

DeepCopy()

public FormElementDataItem DeepCopy()

Returns

FormElementDataItem

HasElementMap()

public bool HasElementMap()

Returns

bool

HasItems()

public bool HasItems()

Returns

bool

HasSqlCommand()

public bool HasSqlCommand()

Returns

bool

SupportsFloatingLabels()

public bool SupportsFloatingLabels()

Returns

bool