91
edits
Buttchouda (talk | contribs) |
|||
Line 14: | Line 14: | ||
The global <code>sidebar</code> object. | The global <code>sidebar</code> object. | ||
=== category(id: string, config?: CategoryConfig, builder?: (category: Category) => void): Category === | |||
'''Alternatively <code>category(id: string, builder?: (category: Category) => void): Category</code>''' | '''Alternatively <code>category(id: string, builder?: (category: Category) => void): Category</code>''' | ||
Line 41: | Line 41: | ||
});</nowiki> | });</nowiki> | ||
=== | === categories(): Category[] === | ||
'''Returns''' | '''Returns''' | ||
Line 50: | Line 50: | ||
<nowiki>const allCategories = sidebar.categories();</nowiki> | <nowiki>const allCategories = sidebar.categories();</nowiki> | ||
=== | === removeCategory(id: string): void === | ||
Remove a category by its <code>id</code>. | Remove a category by its <code>id</code>. | ||
Line 61: | Line 61: | ||
<nowiki>sidebar.removeCategory('Combat');</nowiki> | <nowiki>sidebar.removeCategory('Combat');</nowiki> | ||
=== | === removeAllCategories(): void === | ||
Remove all categories from the sidebar. Not completely sure why you'd want to do that, though. | Remove all categories from the sidebar. Not completely sure why you'd want to do that, though. |
edits