|
|
@ -94,6 +94,7 @@ public abstract class AbpDatePickerBaseTagHelperService<TTagHelper> : AbpTagHelp |
|
|
{ |
|
|
{ |
|
|
TagHelperOutput = TagHelperOutput = new TagHelperOutput("input", GetInputAttributes(context, output), (_, _) => Task.FromResult<TagHelperContent>(new DefaultTagHelperContent())); |
|
|
TagHelperOutput = TagHelperOutput = new TagHelperOutput("input", GetInputAttributes(context, output), (_, _) => Task.FromResult<TagHelperContent>(new DefaultTagHelperContent())); |
|
|
|
|
|
|
|
|
|
|
|
AddDataPickerAttribute(TagHelperOutput); |
|
|
AddDisabledAttribute(TagHelperOutput); |
|
|
AddDisabledAttribute(TagHelperOutput); |
|
|
AddAutoFocusAttribute(TagHelperOutput); |
|
|
AddAutoFocusAttribute(TagHelperOutput); |
|
|
AddFormControls(context, output, TagHelperOutput); |
|
|
AddFormControls(context, output, TagHelperOutput); |
|
|
@ -711,6 +712,11 @@ public abstract class AbpDatePickerBaseTagHelperService<TTagHelper> : AbpTagHelp |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected virtual void AddDataPickerAttribute(TagHelperOutput inputTagHelperOutput) |
|
|
|
|
|
{ |
|
|
|
|
|
inputTagHelperOutput.Attributes.Add("data-datepicker", "true"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
protected virtual void AddDisabledAttribute(TagHelperOutput inputTagHelperOutput) |
|
|
protected virtual void AddDisabledAttribute(TagHelperOutput inputTagHelperOutput) |
|
|
{ |
|
|
{ |
|
|
if (inputTagHelperOutput.Attributes.ContainsName("disabled") == false && |
|
|
if (inputTagHelperOutput.Attributes.ContainsName("disabled") == false && |
|
|
|