SelectEditorAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that the target property should use a "Select" editor, whose items come from the SelectItemAttribute attributes of the property, if any. A property with a SelectItemAttribute does not need this attribute, as the items imply it.
[AttributeUsage(AttributeTargets.All)]
public class SelectEditorAttribute : CustomEditorAttribute
Public Members
| name | description |
|---|---|
| SelectEditorAttribute() | Initializes a new instance of the SelectEditorAttribute class. |
| CssClassField { get; set; } | The field of an item that holds its CSS class, e.g. "text-danger", which the editor adds to the item in its results. The items of a SelectItemAttribute set it themselves when they have one. |
| TextKeyField { get; set; } | The field of an item that holds its local text key, which the editor localizes, or "text" when the text of an item is its key. When it is not set, the text of an item is shown as it is. The items of a SelectItemAttribute set it themselves when they have a text key. |
| const Key | Editor type key |
See Also
- class CustomEditorAttribute
- Source: SelectEditorAttribute.cs