Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
defaultSettings = { edge: 'left', // edge of the window the toolbar is on width: 20, // default width of the toolbar with no buttons margin: 0, // gap between the toolbar and the edge of the window hideMargin: -20, // how much of the toolbar should be shown when the toolbar is hidden top: 'auto', // 'top' CSS style for positioning bottom: '10px', // 'bottom' CSS style for positioning fade: false, // boolean of whether the toolbar will fade in and fade out shown: false // boolean of whether the toolbar is shown initially }; |
destroyToolbar
...
Destroys the created toolbar. Should be called on clean up.
Example Usage | Arguments | Return Value |
---|---|---|
tbs.destroyToolbar(id ); | id - the string ID of the toolbar you want to destroy | none |