Renders a select list editor for this property. Displays a multiple select list in case of a collection type, or a dropdown list otherwise. The option keys will be set as the property value. The member type may be string or any other simple type, provided the option key can be converted from string. Options can be set during compile-time by passing them in the constructor, or by passing an ISelectOptionsProvider type in the constructor to populate options during runtime.

[AttributeUsage]
public class SelectListAttribute: IContentPropertyAttribute
Inheritance:
ObjectAttributeSelectListAttribute
Implements:
IContentPropertyAttribute

Constructors

SelectListAttribute(string) Configures a select list editor with constant compile-time select options.
SelectListAttribute(Type) Renders a select list editor with select options retrieved from the specified options provider.

Properties

Placeholder Placeholder that is displayed when no value is selected. Only applies to Dropdown list style.

Methods

Apply(ContentPropertyDefinition)