Class DataFormDateOptionsAttribute
Represents date-related options for the DataForm component.
Inheritance
System.Object
DataFormDateOptionsAttribute
Namespace: Syncfusion.Blazor.DataForm
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class DataFormDateOptionsAttribute : ValidationAttribute
Constructors
DataFormDateOptionsAttribute()
Declaration
public DataFormDateOptionsAttribute()
Properties
Format
Gets or sets the format of the MinimumDate and MaximumDate specified.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | The format of the MinimumDate and MaximumDate. |
Remarks
Usage:
[DataFormDateOptions(MaximumDate = "22/02/2024", MinimumDate = "22/01/2024", Format = "dd/MM/yyyy")]
public DateTime? DateTimeValue { get; set; }
MaximumDate
Gets or sets the maximum date that can be selected in the date editor.
Declaration
public string MaximumDate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The maximum date that can be selected in the date editor. |
Remarks
Usage:
DataFormDateOptions(MaximumDate = "22/02/2024", Format = "dd/MM/yyyy")]
public DateTime? DateTimeValue { get; set; }
MinimumDate
Gets or sets the minimum date that can be selected in the date editor.
Declaration
public string MinimumDate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The minimum date that can be selected in the date editor. |
Remarks
Usage:
[DataFormDateOptions(MinimumDate = "22/01/2024", Format = "dd/MM/yyyy")]
public DateTime? DateTimeValue { get; set; }
Methods
IsValid(Object)
Declaration
public override bool IsValid(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type |
---|
System.Boolean |