Table of Contents

Class SingleGeneralSelectorComponent

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

Enables user to select exactly one item from a set of items. A set of available items is provided by Kentico.Xperience.Admin.Base.Forms.Internal.GeneralSelectorPropertiesBase.DataProviderType.

[ComponentAttribute(typeof(SingleGeneralSelectorComponentAttribute))]
public sealed class SingleGeneralSelectorComponent : GeneralSelectorComponentBase<SingleGeneralSelectorProperties, SingleGeneralSelectorClientProperties, string>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
Inheritance
object
FormComponent<SingleGeneralSelectorProperties, SingleGeneralSelectorClientProperties, string>
GeneralSelectorComponentBase<SingleGeneralSelectorProperties, SingleGeneralSelectorClientProperties, string>
SingleGeneralSelectorComponent
Implements
Inherited Members
Extension Methods

Constructors

SingleGeneralSelectorComponent(IHttpContextAccessor, ILocalizationService)

Constructor.

public SingleGeneralSelectorComponent(IHttpContextAccessor httpContextAccessor, ILocalizationService localizationService)

Parameters

httpContextAccessor IHttpContextAccessor

HTTP context accessor.

localizationService ILocalizationService

Localization service.

Properties

ClientComponentName

Name of the front-end type implementing the UI form component.

public override string ClientComponentName { get; }

Property Value

string

Methods

ConvertFormComponentSingleItemValue(IEnumerable<string>)

Extracts an array of selected object identifiers (of string type) from a collection containing items of a the string type.

protected override IEnumerable<string> ConvertFormComponentSingleItemValue(IEnumerable<string> value)

Parameters

value IEnumerable<string>

Component value.

Returns

IEnumerable<string>

ConvertFormComponentValue(string)

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(string value)

Parameters

value string

Component value.

Returns

IEnumerable<string>