From 065f81d1f655ffd21d8dfafbc3f5414b2a33fd1c Mon Sep 17 00:00:00 2001 From: John Bomhold Date: Wed, 18 Dec 2024 01:04:26 -1000 Subject: [PATCH] Adds MaxItems to Breadcrumbs --- .../Static/V4/Components/Breadcrumb.md | 11 +++++---- .../Static/V5/Components/Breadcrumb.md | 11 +++++---- src/BlazorStrap.V4/BlazorStrap.V4.csproj | 2 +- .../Components/Common/BSBreadcrumb.razor | 23 ++++++++++++++---- .../Components/Common/BSBreadcrumb.razor.cs | 10 ++++++++ src/BlazorStrap.V5/BlazorStrap.V5.csproj | 2 +- .../Components/Common/BSBreadcrumb.razor | 24 +++++++++++++++---- .../Components/Common/BSBreadcrumb.razor.cs | 10 ++++++++ src/BlazorStrap/BlazorStrap.csproj | 2 +- .../Components/Common/BSBreadcrumbBase.cs | 5 ++++ 10 files changed, 79 insertions(+), 21 deletions(-) diff --git a/src/BlazorStrap.Docs/wwwroot/Static/V4/Components/Breadcrumb.md b/src/BlazorStrap.Docs/wwwroot/Static/V4/Components/Breadcrumb.md index 643cd112..334fad16 100644 --- a/src/BlazorStrap.Docs/wwwroot/Static/V4/Components/Breadcrumb.md +++ b/src/BlazorStrap.Docs/wwwroot/Static/V4/Components/Breadcrumb.md @@ -3,11 +3,12 @@ See [shared](layout/shared) for additional parameters ::: -| Parameter | Type | Valid | Remarks/Output | -|-----------|----------------------------|----------------------------|-------------------------------------------------| -| Divider | string | string | | {.table-striped} -| BasePath | string | string | Turns on auto generate using supplied base path | -| Labels | Dictionary | Dictionary | Custom Labels for your paths see example | +| Parameter | Type | Valid | Remarks/Output | +|-----------|----------------------------|----------------------------|----------------------------------------------------| +| Divider | string | string | | {.table-striped} +| BasePath | string | string | Turns on auto generate using supplied base path | +| Labels | Dictionary | Dictionary | Custom Labels for your paths see example | +| MaxItems | int | int | Maximum number of items to show in the breadcrumb. | ::: diff --git a/src/BlazorStrap.Docs/wwwroot/Static/V5/Components/Breadcrumb.md b/src/BlazorStrap.Docs/wwwroot/Static/V5/Components/Breadcrumb.md index 12e49fca..1df02ae4 100644 --- a/src/BlazorStrap.Docs/wwwroot/Static/V5/Components/Breadcrumb.md +++ b/src/BlazorStrap.Docs/wwwroot/Static/V5/Components/Breadcrumb.md @@ -3,11 +3,12 @@ See [shared](layout/shared) for additional parameters ::: -| Parameter | Type | Valid | Remarks/Output | -|-----------|----------------------------|----------------------------|-------------------------------------------------| -| Divider | string | string | | {.table-striped} -| BasePath | string | string | Turns on auto generate using supplied base path | -| Labels | Dictionary | Dictionary | Custom Labels for your paths see example | +| Parameter | Type | Valid | Remarks/Output | +|-----------|----------------------------|----------------------------|----------------------------------------------------| +| Divider | string | string | | {.table-striped} +| BasePath | string | string | Turns on auto generate using supplied base path | +| Labels | Dictionary | Dictionary | Custom Labels for your paths see example | +| MaxItems | int | int | Maximum number of items to show in the breadcrumb. | ::: diff --git a/src/BlazorStrap.V4/BlazorStrap.V4.csproj b/src/BlazorStrap.V4/BlazorStrap.V4.csproj index a875fecc..cc5dd78e 100644 --- a/src/BlazorStrap.V4/BlazorStrap.V4.csproj +++ b/src/BlazorStrap.V4/BlazorStrap.V4.csproj @@ -14,7 +14,7 @@ https://blazorstrap.io/ https://github.com/chanan/BlazorStrap BlazorStrap.V4 - 5.2.103 + 5.2.103.121824 diff --git a/src/BlazorStrap.V4/Components/Common/BSBreadcrumb.razor b/src/BlazorStrap.V4/Components/Common/BSBreadcrumb.razor index 75b39630..d3ca8a75 100644 --- a/src/BlazorStrap.V4/Components/Common/BSBreadcrumb.razor +++ b/src/BlazorStrap.V4/Components/Common/BSBreadcrumb.razor @@ -13,12 +13,27 @@ else {