mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
816 B
32 lines
816 B
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Widgets;
|
|
using Volo.Abp.Localization;
|
|
|
|
namespace Volo.CmsKit.ViewComponents;
|
|
|
|
[Widget(
|
|
AutoInitialize = true
|
|
)]
|
|
|
|
[ViewComponent(Name = "DecisionCommentDate")]
|
|
public class DecisionCommentDateViewComponent : AbpViewComponent
|
|
{
|
|
public DecisionCommentDateViewComponent()
|
|
{
|
|
}
|
|
|
|
public virtual async Task<IViewComponentResult> InvokeAsync()
|
|
{
|
|
return View("~/ViewComponents/DecisionCommentDate.cshtml", new DecisionCommentDateViewModel());
|
|
}
|
|
}
|
|
|
|
public class DecisionCommentDateViewModel
|
|
{
|
|
[DisplayName("Show date in the component")]
|
|
public bool IsShow { get; set; } = true;
|
|
}
|
|
|