From 36a431546419dfc3180c41c2fc76c108feb77360 Mon Sep 17 00:00:00 2001 From: maliming Date: Thu, 12 Nov 2026 14:58:45 +0800 Subject: [PATCH] Fix FooterNav field names in the LeptonX Angular footer docs --- docs/en/ui-themes/lepton-x-lite/angular.md | 12 +++++++----- docs/en/ui-themes/lepton-x/angular-customization.md | 11 +++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/docs/en/ui-themes/lepton-x-lite/angular.md b/docs/en/ui-themes/lepton-x-lite/angular.md index 9e18bf994b..9ca179ed51 100644 --- a/docs/en/ui-themes/lepton-x-lite/angular.md +++ b/docs/en/ui-themes/lepton-x-lite/angular.md @@ -298,9 +298,9 @@ The Mobile User-Profile component key is `eThemeLeptonXComponents.MobileUserProf The Footer is the section of content at the very bottom of the site. This section of the content can be modified. The ABP Studio templates serve this option by default. You can reach the configurations under `angular/src/app/footer` directory that has a component and a configuration file. -If you still prefer overriding it by yourself, remove the default configuration. Inject **FooterLinksService** and use the **setFooterInfo** method of **FooterLinksService** +If you still prefer overriding it by yourself, remove the default configuration (the `FOOTER_PROVIDER` registration in `app.config.ts`). Inject **FooterLinksService** and use the **setFooterInfo** method of **FooterLinksService** to assign path or link and description. -The **descUrl** and **footerLinks** are nullable. Constant **footerLinks** are on the right side of footer. +The **links** property is optional and is shown on the right side of the footer. The brand and author parts are shown only when **brandUrl** and **authorUrl** are set, respectively. ```js ///... @@ -317,9 +317,11 @@ const footerLinks = [ ]; const footerInfo: FooterNav = { - desc: "Home", - descUrl: "/components/home", - footerLinks: footerLinks, + brandName: "Home", + brandUrl: "/components/home", + authorName: "Volosoft", + authorUrl: "https://volosoft.com/", + links: footerLinks, }; this.footerLinksService.setFooterInfo(footerInfo); diff --git a/docs/en/ui-themes/lepton-x/angular-customization.md b/docs/en/ui-themes/lepton-x/angular-customization.md index ccef281d52..089210c5ff 100644 --- a/docs/en/ui-themes/lepton-x/angular-customization.md +++ b/docs/en/ui-themes/lepton-x/angular-customization.md @@ -190,9 +190,10 @@ this.replaceableComponents.add({ ![Angular Footer Component](images/angular-footer.png) The Footer is the section of content at the very bottom of the site. This section of the content can be modified. +The ABP Studio templates replace the footer with their own component, registered by `FOOTER_PROVIDER` in `app.config.ts` (see the `angular/src/app/footer` directory). To configure the default footer instead, remove that provider first. Inject **FooterLinksService** and use the **setFooterInfo** method of **FooterLinksService** to assign path or link and description. -**descUrl** and **footerLinks** are nullable. Constant **footerLinks** are on the right side of the footer. +**links** is optional and is shown on the right side of the footer. The brand and author parts are shown only when **brandUrl** and **authorUrl** are set, respectively. ```js ///... @@ -207,9 +208,11 @@ const footerLinks = [ }, ]; const footerInfo: FooterNav = { - desc: "Home", - descUrl: "/home", - footerLinks: footerLinks, + brandName: "Home", + brandUrl: "/home", + authorName: "Volosoft", + authorUrl: "https://volosoft.com/", + links: footerLinks, }; this.footerLinksService.setFooterInfo(footerInfo); ///...