5,798
edits
(Use SyntaxHighlight) |
(Add correct IDs to sidebar reference tutorial) |
||
Line 186: | Line 186: | ||
<syntaxhighlight lang="js" line>// Move Astrology above Firemaking | <syntaxhighlight lang="js" line>// Move Astrology above Firemaking | ||
sidebar.category('Non-Combat').item('Astrology', { before: 'Firemaking' }); | sidebar.category('Non-Combat').item('melvorD:Astrology', { before: 'melvorD:Firemaking' }); | ||
// Create a new item and add a subitem beneath it | // Create a new item and add a subitem beneath it | ||
Line 203: | Line 203: | ||
'''Example''' | '''Example''' | ||
<syntaxhighlight lang="js" line>sidebar.category('Combat').removeItem('Attack');</syntaxhighlight> | <syntaxhighlight lang="js" line>sidebar.category('Combat').removeItem('melvorD:Attack');</syntaxhighlight> | ||
=== removeAllItems(): void === | === removeAllItems(): void === |