mirror of https://github.com/abpframework/abp
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.
26 lines
583 B
26 lines
583 B
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 = "CmsToday")]
|
|
public class TodayViewComponent : AbpViewComponent
|
|
{
|
|
public string Format { get; set; }
|
|
|
|
public TodayViewComponent()
|
|
{
|
|
}
|
|
|
|
public virtual async Task<IViewComponentResult> InvokeAsync(string format)
|
|
{
|
|
return View("~/ViewComponents/Today.cshtml", new TodayViewComponent() { Format = format });
|
|
}
|
|
}
|