namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that the target property should use a "DateYear" editor.
[AttributeUsage(AttributeTargets.All)]
public class DateYearEditorAttribute : CustomEditorAttribute
name | description |
---|---|
DateYearEditorAttribute() | Initializes a new instance of the DateYearEditorAttribute class. |
Descending { get; set; } | Gets or sets a value indicating whether the years should be listed in descending order. |
MaxYear { get; set; } | Gets or sets the maximum year. It can be written as an integer value, or +50, -20 etc. corresponding to current year plus or minus years. |
MinYear { get; set; } | Gets or sets the minimum year. It can be written as an integer value, or +50, -20 etc. corresponding to current year plus or minus years. |
const Key | Editor type key |
- class CustomEditorAttribute
- Source: DateYearEditorAttribute.cs