Mod Creation/Sidebar API Reference: Difference between revisions

no edit summary
(Created page with "The <code>sidebar</code> object is a global variable and is used to customize the side (left-hand) navigation menu. The sidebar is organized into four levels: * '''Sidebar''' ** '''Category''' **: e.g. "Combat" *** '''Item''' ***: e.g. "Attack" under "Combat" **** '''Subitem''' ****: e.g. "Skills" under "Completion Log" == Sidebar == The global <code>sidebar</code> object. === <code>category(id: string, config?: CategoryConfig, builder?: (category: Category) => void)...")
 
No edit summary
Line 358: Line 358:
}</nowiki>
}</nowiki>


If creating a new subitem and neither a <code>before</code> nor <code>after<code> is defined, the subitem is added to the bottom of the parent item's sub-menu.
If creating a new subitem and neither a <code>before</code> nor <code>after</code> is defined, the subitem is added to the bottom of the parent item's sub-menu.


You can pass <code>null</code> to any property to remove previously configured options. For example, setting <code>name</code> to <code>null</code> sets the display of the subitem back to its id.
You can pass <code>null</code> to any property to remove previously configured options. For example, setting <code>name</code> to <code>null</code> sets the display of the subitem back to its id.
91

edits