DEV: fix "addNavigationBarItem" documentation (#9207)
* the filter should return the boolean result * custom href should return the relative url value
This commit is contained in:
parent
0c71f7bbd1
commit
ef40b46611
|
@ -755,8 +755,8 @@ class PluginApi {
|
|||
* displayName: "bugs"
|
||||
* href: "/c/bugs",
|
||||
* init: (navItem, category) => { if (category) { navItem.set("category", category) } }
|
||||
* customFilter: (category, args, router) => { category && category.name !== 'bug' }
|
||||
* customHref: (category, args, router) => { if (category && category.name) === 'not-a-bug') "/a-feature"; },
|
||||
* customFilter: (category, args, router) => { return category && category.name !== 'bug' }
|
||||
* customHref: (category, args, router) => { if (category && category.name) === 'not-a-bug') return "/a-feature"; },
|
||||
* before: "top",
|
||||
* forceActive(category, args, router) => router.currentURL === "/a/b/c/d";
|
||||
* })
|
||||
|
|
Loading…
Reference in New Issue