Browse Source

Merge pull request #23735 from abpframework/issue-6586

Document refactor :  menu removal methods in Angular UI
pull/23736/head
sumeyye 1 year ago
committed by GitHub
parent
commit
a8346134c0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      docs/en/framework/ui/angular/modifying-the-menu.md

5
docs/en/framework/ui/angular/modifying-the-menu.md

@ -269,7 +269,12 @@ this.routes.remove(['Your navigation']);
// or
this.routes.removeByParam({ name: 'Your navigation' });
```
**Method Parameters:**
- `remove(routeNames: string[])`: Takes an array of route names to remove.
- `removeByParam(routeProperty: Partial<ABP.Route>)`: Takes any route property (name, path, parentName, etc.) to match and remove routes.
<br>
**Results of the operations above:**
- Moved the _Home_ navigation under the _Administration_ dropdown based on given `parentName`.
- Added an icon to _Home_.
- Specified the order and made _Home_ the first item in list.

Loading…
Cancel
Save