Wyatt Allen | c148593 | 2018-03-30 10:53:36 -0700 | [diff] [blame] | 1 | = Gerrit Code Review - Admin customization API |
| 2 | |
| 3 | This API is provided by link:pg-plugin-dev.html#plugin-admin[plugin.admin()] |
| 4 | and provides customization of the admin menu. |
| 5 | |
| 6 | == addMenuLink |
| 7 | `adminApi.addMenuLink(text, url, opt_external)` |
| 8 | |
| 9 | Add a new link to the end of the admin navigation menu. |
| 10 | |
| 11 | .Params |
| 12 | - *text* String text to appear in the link. |
| 13 | - *url* String of the destination URL for the link. |
| 14 | |
| 15 | When adding an external link, the URL provided should be a full URL. Otherwise, |
| 16 | a non-external link should be relative beginning with a slash. For example, to |
| 17 | create a link to open changes, use the value `/q/status:open`. |