StatusBar
Ancestors
- None
Descendants
- None
See Also
- None
Constructors
Description
Creates a new status bar.
Members
Description
Gets or sets whether the status bar displays as "active" or "disabled". The disabled state grays out the icon and title, in addition it does not respond to mouse or keyboard actions.
Description
Gets or sets the image used in the status bar. The image is automatically resized to fit the OS requirements. An image can be a url including the app:// schema, or can be named system icon.
Description
Gets or sets the menu to display when the user clicks on the status bar. NOTE: When a menu is set the click event is ignored and the menu is opened.
Description
Gets or sets the title of the status bar. Most status bar's do not have titles and only icons. The title should be limited to no more than 3 words as the space available is limited.
Description
Gets or sets the text displayed when the user keeps the mouse cursor over the icon without taking any action. This can be thought of as a description as to what the status bar does.
Methods
Description
Adds an event listener for events. The first parameter is the name of the event, the second parameter is the function to call when the event happens (e.g., a callback).
Parameters
Name | Type | Description |
---|---|---|
eventName | string | The name of the event to start listening to. |
callback | function | The function that will be called when it occurs. |
Description
Closes the status bar and removes it from operating system UI.
Description
Removes an event listener for events. The first parameter is the name of the event, the second parameter is the function that was originally given as the callback for addEventListener.
Parameters
Name | Type | Description |
---|---|---|
eventName | string | The name of the event to stop listening to. |
callback | function | The function that would have been called. |
Events
Description
Fires when the user clicks on the statusbar icon, this will not fire if a menu is placed on the status bar or if a custom view is set.