From 2aa03bc433e54489afb4f7d7f75c71345a5d6b09 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Mon, 24 Dec 2018 19:04:15 +0300 Subject: [PATCH] Add BreadCrumb.Add method --- .../Volo/Abp/AspNetCore/Mvc/UI/Layout/BreadCrumb.cs | 5 +++++ 1 file changed, 5 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 c0459fe5a0..10d03554e4 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 @@ -20,5 +20,10 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Layout { Items = new List(); } + + public void Add(string text, string url = null, string icon = null) + { + Items.Add(new BreadCrumbItem(text, url, icon)); + } } } \ No newline at end of file