Class DateInputComponent
Represents the Date input form component.
[ComponentAttribute(typeof(DateInputComponentAttribute))]
public sealed class DateInputComponent : DateTimeInputComponentBase<FormComponentProperties, DateInputClientProperties, DateTime?>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
- Inheritance
-
objectDateInputComponent
- Implements
- Inherited Members
- Extension Methods
Constructors
DateInputComponent(ILocalizationService, IDateTimeNowService)
Creates a new instance of DateInputComponent.
public DateInputComponent(ILocalizationService localizationService, IDateTimeNowService dateTimeService)
Parameters
localizationServiceILocalizationServicedateTimeServiceIDateTimeNowService
Fields
IDENTIFIER
Represents the DateInputComponent identifier.
public const string IDENTIFIER = "Kentico.Administration.DateInput"
Field Value
- string
Properties
ClientComponentName
Name of the front-end type implementing the UI form component.
public override string ClientComponentName { get; }
Property Value
- string
Methods
SetValue(DateTime?)
Sets the value of the form component.
public override void SetValue(DateTime? value)
Parameters
valueDateTime?Value to be set.
Remarks
The value can be additionally modified for component usage.
Component is fully configured when method is called.
ValidateDateValue(ValidateDateValueCommandArguments)
A command that validates whether the provided string is in a expected Date format.
[FormComponentCommand]
[Obsolete("Serverside validation of 'DateInputComponent' is being deprecated.")]
public Task<ICommandResponse<ValidateDateValueCommandResult>> ValidateDateValue(ValidateDateValueCommandArguments arguments)
Parameters
argumentsValidateDateValueCommandArgumentsThe arguments of the command.