Browse Source

Merge pull request #26477 from abpframework/maliming/fix-angular-footer-docs

Fix FooterNav field names in the LeptonX Angular footer docs
pull/26482/head
sumeyye 2 weeks ago
committed by GitHub
parent
commit
53f3829a14
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      docs/en/ui-themes/lepton-x-lite/angular.md
  2. 11
      docs/en/ui-themes/lepton-x/angular-customization.md

12
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);

11
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);
///...

Loading…
Cancel
Save