Class MultipleObjectSelectorBase<TProperties, TSingleItemValue>
Base class for the Object selector form component which allows to select multiple items.
public abstract class MultipleObjectSelectorBase<TProperties, TSingleItemValue> : ObjectSelectorBase<TProperties, ObjectSelectorClientProperties<TSingleItemValue>, IEnumerable<TSingleItemValue>, TSingleItemValue>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem where TProperties : ObjectSelectorProperties, new()
Type Parameters
TPropertiesComponent properties type.
TSingleItemValueA CLR type of a value element the form component operates with.
- Inheritance
-
objectFormComponent<TProperties, ObjectSelectorClientProperties<TSingleItemValue>, IEnumerable<TSingleItemValue>>ObjectSelectorBase<TProperties, ObjectSelectorClientProperties<TSingleItemValue>, IEnumerable<TSingleItemValue>, TSingleItemValue>MultipleObjectSelectorBase<TProperties, TSingleItemValue>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
MultipleObjectSelectorBase(IObjectsRetriever, IObjectSelectorWhereConditionProviderActivator, ILocalizationService)
Constructor.
protected MultipleObjectSelectorBase(IObjectsRetriever objectsRetriever, IObjectSelectorWhereConditionProviderActivator whereConditionProviderActivator, ILocalizationService localizationService)
Parameters
objectsRetrieverIObjectsRetrieverObjects retriever.
whereConditionProviderActivatorIObjectSelectorWhereConditionProviderActivatorWHERE condition provider activator.
localizationServiceILocalizationServiceLocalization service.
Exceptions
- ArgumentNullException
If
objectsRetriever,whereConditionProviderActivatororlocalizationServiceis null.
Properties
ClientComponentName
Name of the front-end type implementing the UI form component.
public override string ClientComponentName { get; }
Property Value
- string
Methods
ConfigureClientProperties(ObjectSelectorClientProperties<TSingleItemValue>)
Configures the form component client properties.
protected override Task ConfigureClientProperties(ObjectSelectorClientProperties<TSingleItemValue> clientProperties)
Parameters
clientPropertiesObjectSelectorClientProperties<TSingleItemValue>The current instance of the form component client properties.
Returns
- Task
Remarks
Override this method in order to configure form component client properties.
ConfigureComponent()
Configures the form component. This method is called when all form component properties are set.
protected override void ConfigureComponent()
Remarks
Override this method to set component inner state, like additional component validation rules.
ConvertFormComponentSingleItemValue(IEnumerable<TSingleItemValue>)
Extracts an array of selected object identifiers from a collection containing items of a the TSingleItemValue type.
protected override IEnumerable<string> ConvertFormComponentSingleItemValue(IEnumerable<TSingleItemValue> value)
Parameters
valueIEnumerable<TSingleItemValue>Component value.
Returns
- IEnumerable<string>