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.
30 lines
665 B
30 lines
665 B
using System.ComponentModel;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Widgets;
|
|
|
|
namespace Volo.CmsKit.ViewComponents;
|
|
|
|
[Widget(
|
|
AutoInitialize = true
|
|
)]
|
|
|
|
[ViewComponent(Name = "Format")]
|
|
public class FormatViewComponent : AbpViewComponent
|
|
{
|
|
public FormatViewComponent()
|
|
{
|
|
}
|
|
|
|
public virtual async Task<IViewComponentResult> InvokeAsync()
|
|
{
|
|
return View("~/ViewComponents/Format.cshtml", new FormatViewModel());
|
|
}
|
|
}
|
|
|
|
public class FormatViewModel
|
|
{
|
|
[DisplayName("Format your date in the component")]
|
|
public string Format { get; set; }
|
|
}
|
|
|