Table of Contents

Class JJComboBox

Namespace
JJMasterData.Core.UI.Components
Assembly
JJMasterData.Core.dll
public class JJComboBox : ControlBase, IFloatingLabelControl
Inheritance
JJComboBox
Implements
Inherited Members

Constructors

JJComboBox(IFormValues, DataItemService, IStringLocalizer<MasterDataResources>, ILogger<JJComboBox>)

public JJComboBox(IFormValues formValues, DataItemService dataItemService, IStringLocalizer<MasterDataResources> stringLocalizer, ILogger<JJComboBox> logger)

Parameters

formValues IFormValues
dataItemService DataItemService
stringLocalizer IStringLocalizer<MasterDataResources>
logger ILogger<JJComboBox>

Properties

ConnectionId

public Guid? ConnectionId { get; set; }

Property Value

Guid?

DataItem

public FormElementDataItem DataItem { get; set; }

Property Value

FormElementDataItem

EnableLocalization

public bool EnableLocalization { get; set; }

Property Value

bool

FloatingLabel

public string? FloatingLabel { get; set; }

Property Value

string

FormStateData

public FormStateData FormStateData { get; set; }

Property Value

FormStateData

Id

public string? Id { get; set; }

Property Value

string

MultiSelect

If the filter is MULTVALUES_EQUALS, enable multiselect.

public bool MultiSelect { get; set; }

Property Value

bool

SelectedValue

public string? SelectedValue { get; set; }

Property Value

string

UseFloatingLabel

public bool UseFloatingLabel { get; set; }

Property Value

bool

Methods

BuildResultAsync()

protected override ValueTask<ComponentResult> BuildResultAsync()

Returns

ValueTask<ComponentResult>

GetDescriptionAsync()

Recovers the description from the selected value;

public Task<string?> GetDescriptionAsync()

Returns

Task<string>

GetValueAsync(string?)

public Task<DataItemValue?> GetValueAsync(string? searchId)

Parameters

searchId string

Returns

Task<DataItemValue>

GetValuesAsync()

public Task<List<DataItemValue>> GetValuesAsync()

Returns

Task<List<DataItemValue>>