Class BaseObjectSelectorComponentAttribute
- Namespace
- Kentico.Xperience.Admin.Base.FormAnnotations
- Assembly
- Kentico.Xperience.Admin.Base.Shared.dll
Base attribute for the form components based on object selector.
public abstract class BaseObjectSelectorComponentAttribute : FormComponentAttribute
- Inheritance
-
objectAttributeBaseObjectSelectorComponentAttribute
- Derived
- Inherited Members
- Extension Methods
Constructors
BaseObjectSelectorComponentAttribute(string)
Creates an instance of BaseObjectSelectorComponentAttribute.
protected BaseObjectSelectorComponentAttribute(string objectType)
Parameters
objectType
stringDefines which objects will be displayed in the selector.
Properties
MaximumItems
Maximum amount of selectable objects in the selector. Defaults to 1.
public int MaximumItems { get; set; }
Property Value
- int
Remarks
Following values can be used to limit the maximum number of objects:
- 0number of selectable objects is unlimited
- 1single page may be selected
- Nup to N objects may be selected
ObjectType
Defines which objects will be displayed in the selector.
public string ObjectType { get; }
Property Value
- string
Remarks
If the given object type declares a relation (either direct or via a binding entity) between an object of that type and a site then the current site's objects are only returned by default.
- See Also
OrderBy
Defines a list of columns which the data should be sorted by, e.g. ["NodeLevel", "DocumentName DESC"]
public string[] OrderBy { get; set; }
Property Value
- string[]
Placeholder
Placeholder text.
public string Placeholder { get; set; }
Property Value
- string
WhereConditionProviderType
Defines the type which provides the WhereCondition that will be applied to the database query.
The where condition provider type must implement the IObjectSelectorWhereConditionProvider interface.
public Type WhereConditionProviderType { get; set; }
Property Value
- Type