Namespace SSB.contextMenu
Represents the Context-Menu for our SSB. This appears when the user right-clicks the SSB's system-tray icon.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> {void} |
SSB.contextMenu.add(title, action, disable)
Adds menu item to the context menu.
|
| <static> {void} |
SSB.contextMenu.clear()
Clears the context menu.
|
Method Detail
<static>
{void}
SSB.contextMenu.add(title, action, disable)
Adds menu item to the context menu.
// URL
SSB.contextMenu.add("go to google","www.google.com");
// Javascript code string
SSB.contextMenu.add("alert Hello","javascript:alert('Hello')");
// Function handler
function alertMe() {
var text = "Hello World!";
alert(text);
}
SSB.contextMenu.add("Try me!",alertMe);
- Parameters:
- {String} title
- Text that will be displayed as menu item
- {function or string} action
- This parameter can be a string, in which case it will be simply loaded into the bubbles URL, as a string it can also be a javascript command with the prefix "javascript:". This parameter can also be a name of a handler function to be executed when the menItem is chosen.
- {Boolean} disable Optional
- Flag for greying-out menu item.
- Returns:
- {void}
<static>
{void}
SSB.contextMenu.clear()
Clears the context menu.
- Returns:
- {void}