Options for status bar items.

interface IItem {
    activeStateChanged?: ISignal<any, void>;
    align?: Alignment;
    isActive?: (() => boolean);
    item: Widget;
    priority?: number;
    rank?: number;
}

Properties

activeStateChanged?: ISignal<any, void>

A signal that is fired when the item active state changes.

align?: Alignment

Which side to place item. Permanent items are intended for the right and left side, with more transient items in the middle.

isActive?: (() => boolean)

Whether the item is shown or hidden.

Type declaration

    • (): boolean
    • Returns boolean

item: Widget

The item to add to the status bar.

priority?: number

Displaying Items based on zoom priority -- higher zoom priority gets prioritised when zoom levels increase

rank?: number

Ordering of Items -- higher rank items are closer to the middle.