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
IFormValuesdataItemService
DataItemServicestringLocalizer
IStringLocalizer<MasterDataResources>logger
ILogger<JJComboBox>
Properties
ConnectionId
public Guid? ConnectionId { get; set; }
Property Value
- Guid?
DataItem
public FormElementDataItem DataItem { get; set; }
Property Value
EnableLocalization
public bool EnableLocalization { get; set; }
Property Value
FloatingLabel
public string? FloatingLabel { get; set; }
Property Value
FormStateData
public FormStateData FormStateData { get; set; }
Property Value
Id
public string? Id { get; set; }
Property Value
MultiSelect
If the filter is MULTVALUES_EQUALS, enable multiselect.
public bool MultiSelect { get; set; }
Property Value
SelectedValue
public string? SelectedValue { get; set; }
Property Value
UseFloatingLabel
public bool UseFloatingLabel { get; set; }
Property Value
Methods
BuildResultAsync()
protected override ValueTask<ComponentResult> BuildResultAsync()
Returns
GetDescriptionAsync()
Recovers the description from the selected value;
public Task<string?> GetDescriptionAsync()
Returns
GetValueAsync(string?)
public Task<DataItemValue?> GetValueAsync(string? searchId)
Parameters
searchId
string
Returns
GetValuesAsync()
public Task<List<DataItemValue>> GetValuesAsync()