Class DateTagHelper
Version: 21.x
Tag helper that renders HTML date for a Sitecore DateField.
Inheritance
System.Object
DateTagHelper
Namespace: Sitecore.AspNet.RenderingEngine.TagHelpers.Fields
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
RequestResponse
public class DateTagHelper : TagHelperConstructors
DateTagHelper()
Declaration
RequestResponse
public DateTagHelper()Properties
Culture
Gets or sets a culture for the number.
Declaration
RequestResponse
public string Culture { get; set; }Property Value
| Type | Description |
|---|---|
| System.String |
DateFormat
Gets or sets a format for the date.
Declaration
RequestResponse
public string DateFormat { get; set; }Property Value
| Type | Description |
|---|---|
| System.String |
Editable
Gets or sets a value indicating whether the field can be edited.
Declaration
RequestResponse
public bool Editable { get; set; }Property Value
| Type | Description |
|---|---|
| System.Boolean |
For
Gets or sets the model value.
Declaration
RequestResponse
public ModelExpression For { get; set; }Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression |
Methods
Process(TagHelperContext, TagHelperOutput)
Declaration
RequestResponse
public override void Process(TagHelperContext context, TagHelperOutput output)Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext | context | |
| Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput | output |