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
724 B
30 lines
724 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 = "ExampleModalDate")]
|
|
public class ExampleModalDateViewComponent : AbpViewComponent
|
|
{
|
|
public ExampleModalDateViewComponent()
|
|
{
|
|
}
|
|
|
|
public virtual async Task<IViewComponentResult> InvokeAsync()
|
|
{
|
|
return View("~/ViewComponents/ExampleModalDate.cshtml", new ExampleModalDateViewModel());
|
|
}
|
|
}
|
|
|
|
public class ExampleModalDateViewModel
|
|
{
|
|
[DisplayName("Show date in the component")]
|
|
public bool IsShow { get; set; } = true;
|
|
}
|
|
|