RadioButtonsAttribute Class

RadioButtonsAttribute Class

Uses the 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 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 registering an ISelectOptionsProvider implementation in the DI container to populate options during runtime.

[AttributeUsage(AttributeTargets.Property)]
public class RadioButtonsAttribute: Attribute, IPropertyModelAttribute

Inheritance  Attribute RadioButtonsAttribute

Implements  IPropertyModelAttribute

Constructors

Name Description
RadioButtonsAttribute(string[]) Configures a radio buttons editor with constant select options.

Methods

Name Description
Apply(PropertyDefinition)