From 7b2503aa5946aae3b0820ef4f6394239b0289a9a Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Wed, 28 Nov 2018 19:13:13 +0300 Subject: [PATCH] Added properties to breadcrumb --- .../Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumb.cs | 10 ++++++++++ .../Abp/AspNetCore/Mvc/UI/Layout/BreadCrumbItem.cs | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumb.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumb.cs index 07827ef60f..c0459fe5a0 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumb.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumb.cs @@ -4,6 +4,16 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Layout { public class BreadCrumb { + /// + /// Default: true. + /// + public bool ShowHome { get; set; } = true; + + /// + /// Default: true. + /// + public bool ShowCurrent { get; set; } = true; + public List Items { get; } public BreadCrumb() diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumbItem.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumbItem.cs index 0fd76bf79c..340f1915de 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumbItem.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumbItem.cs @@ -7,5 +7,12 @@ public string Icon { get; set; } public string Url { get; set; } + + public BreadCrumbItem(string text, string url = null, string icon = null) + { + Text = text; + Url = url; + Icon = icon; + } } } \ No newline at end of file