The text label for the button.
The CSS class for the button's icon (e.g., "globe", "radar").
A function to be called when the button is clicked.
The URL the button should link to. Defaults to "#" for action-only buttons.
The created list item element (HTMLLIElement) or null if a required container element is not found.
Adds a button to the sidebar panel of the NationStates interface.
The sidebar is the vertical navigation panel on the left (inside
div#panel
). Buttons are added to the main menu list (ul.menu
).