Table of Contents

Class ObjectSelectorComponent

Namespace
Kentico.Xperience.Admin.Base.Forms
Assembly
Kentico.Xperience.Admin.Base.dll

Object selector form component.

[ComponentAttribute(typeof(ObjectSelectorComponentAttribute))]
public sealed class ObjectSelectorComponent : MultipleObjectSelectorBase<ObjectSelectorProperties, ObjectRelatedItem>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
Inheritance
object
ObjectSelectorComponent
Implements
Inherited Members
Extension Methods

Constructors

ObjectSelectorComponent(IObjectsRetriever, IObjectSelectorWhereConditionProviderActivator, ILocalizationService)

Constructor.

public ObjectSelectorComponent(IObjectsRetriever objectsRetriever, IObjectSelectorWhereConditionProviderActivator whereConditionProviderActivator, ILocalizationService localizationService)

Parameters

objectsRetriever IObjectsRetriever

Objects retriever.

whereConditionProviderActivator IObjectSelectorWhereConditionProviderActivator

WHERE condition provider activator.

localizationService ILocalizationService

Localization service.

Methods

ConvertFormComponentValue(IEnumerable<ObjectRelatedItem>)

Extracts an array of selected object identifiers from component value for the sake of providing selected objects meta data to the client component.

protected override IEnumerable<string> ConvertFormComponentValue(IEnumerable<ObjectRelatedItem> value)

Parameters

value IEnumerable<ObjectRelatedItem>

Component value.

Returns

IEnumerable<string>

ExtractValue(IDataContainer, ObjectTypeInfo)

Enables IObjectsRetriever to create an element from a source data.

protected override ObjectRelatedItem ExtractValue(IDataContainer dataContainer, ObjectTypeInfo typeInfo)

Parameters

dataContainer IDataContainer

Source data.

typeInfo ObjectTypeInfo

Type info.

Returns

ObjectRelatedItem