mirror of https://github.com/abpframework/abp.git
committed by
GitHub
7 changed files with 43 additions and 40 deletions
@ -0,0 +1,19 @@ |
|||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Layout; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Themes.Basic.Components.ContentTitle; |
||||
|
|
||||
|
public class ContentTitleViewComponent : AbpViewComponent |
||||
|
{ |
||||
|
protected IPageLayout PageLayout { get; } |
||||
|
|
||||
|
public ContentTitleViewComponent(IPageLayout pageLayout) |
||||
|
{ |
||||
|
PageLayout = pageLayout; |
||||
|
} |
||||
|
|
||||
|
public virtual IViewComponentResult Invoke() |
||||
|
{ |
||||
|
return View("~/Themes/Basic/Components/ContentTitle/Default.cshtml", PageLayout.Content); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
@using Volo.Abp.AspNetCore.Mvc.UI.Layout |
||||
|
|
||||
|
@model ContentLayout |
||||
|
|
||||
|
<div class="col"> |
||||
|
<h4>@Model.Title</h4> |
||||
|
</div> |
||||
Loading…
Reference in new issue