StatusLineEvent

This event class is fired when one of the status line messages is about to change. (The status line is the area near the bottom of the main window where a rotating series of messages are displayed.)

This event has only one subtype:

The event target for this event type is the StatusLine object representing the status line being updated. In an event handler, you can determine which status line triggered the event via the target property of the event object passed as a parameter to the event handler; this can be helpful if you want to attach a single handler function to multiple status lines.

function handler(event) { // get the StatusLine object representing the status line being updated let whichStatusLine = event.target; } // attach the same handler to each status line mainWindow.statusLines.upper.on("statusline", handler); mainWindow.statusLines.lower.on("statusline", handler); mainWindow.statusLines.attract.on("statusline", handler);

Triggers

The statusline event can be triggered in two different ways:

Properties

This event type has all of the standard event properties and methods (see the Event class), plus the following additional items: