From 926c3014deb1b3ae92d9ef166f4de9134d5430e2 Mon Sep 17 00:00:00 2001 From: Krzysztof Jeske Date: Mon, 20 Nov 2023 21:56:46 +0100 Subject: [PATCH] Introduce operation-id. Add hydro-link, make hydro-boost obsolete. --- docs/content/features/navigation.md | 6 +- docs/content/features/ui-utils.md | 2 +- src/HydroComponent.cs | 164 ++++++++++++++--------- src/HydroComponentEvent.cs | 1 + src/HydroConsts.cs | 2 + src/Scripts/hydro.js | 151 ++++++++++++--------- src/TagHelpers/HydroBoostTagHelper.cs | 7 +- src/TagHelpers/HydroDispatchTagHelper.cs | 3 +- src/TagHelpers/HydroLinkTagHelper.cs | 31 +++++ src/Utils/Int32Converter.cs | 2 +- 10 files changed, 233 insertions(+), 136 deletions(-) create mode 100644 src/TagHelpers/HydroLinkTagHelper.cs diff --git a/docs/content/features/navigation.md b/docs/content/features/navigation.md index 79bb162..b5b39fb 100644 --- a/docs/content/features/navigation.md +++ b/docs/content/features/navigation.md @@ -11,18 +11,18 @@ There are 3 kinds of managed navigation in applications using Hydro: ## Navigation via links -With `hydro-boost` attribute relative links in your application can be loaded in the background and applied to the current document instead of doing the full page reload. +With `hydro-link` attribute relative links in your application can be loaded in the background and applied to the current document instead of doing the full page reload. Examples: Attribute applied directly on a link: ```html -My page +My page ``` Attribute applied directly on a parent of the links: ```html -