-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Responsive on this page navigation
- Loading branch information
1 parent
85a299b
commit e3b65ee
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...onents.Web.Bootstrap.Documentation/Shared/Components/ResponsiveOnThisPageNavigation.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<OnThisPageNavigation CssClass="d-none d-md-block d-lg-none my-4"> | ||
<h6 class="mt-3 pb-1 border-bottom">On this page</h6> | ||
</OnThisPageNavigation> | ||
|
||
<div class="my-4 d-md-none"> | ||
<HxCollapseToggleButton Text="On this page" Icon="BootstrapIcon.ChevronExpand" Outline="true" Color="ThemeColor.Primary" CollapseTarget="#on-this-page-navigation-collapse" /> | ||
<HxCollapse Id="on-this-page-navigation-collapse" CssClass="mt-2"> | ||
<HxCard> | ||
<BodyTemplate> | ||
<OnThisPageNavigation /> | ||
</BodyTemplate> | ||
</HxCard> | ||
</HxCollapse> | ||
</div> |
10 changes: 10 additions & 0 deletions
10
...nts.Web.Bootstrap.Documentation/Shared/Components/ResponsiveOnThisPageNavigation.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components; | ||
|
||
/// <summary> | ||
/// On this page navigation is handled automatically for pages where the <see cref="ComponentApiDoc"/> component is used. | ||
/// <see cref="ResponsiveOnThisPageNavigation"/> component should be placed on pages where we aren't using <see cref="ComponentApiDoc"/> and want on this page navigation. | ||
/// </summary> | ||
public partial class ResponsiveOnThisPageNavigation | ||
{ | ||
|
||
} |