IITC.statusbar

Status bar module for IITC that displays both map and portal status information. Provides a template-based rendering system that can be customized by plugins.

Namespaces

map

portal

Members

static mapTemplates :Object.<string, string>

Templates for map status HTML elements

static portalTemplates :Object.<string, string>

Templates for portal status HTML elements

Methods

private, static _updateVisibility()

Updates the actual visibility of the statusbar element. Visible only when both HTML is enabled and current pane wants it shown.

static disableHtml()

Disables the HTML statusbar element on the page. Called automatically when the app handles all status information via native APIs. The statusbar module continues to work (sending data to app), only the HTML block is hidden.

static enableHtml()

Enables the HTML statusbar element on the page. Plugins can call this to display custom content in the statusbar even when the app handles default status information.

static hide()

Hides the statusbar (pane-level visibility). Called by pane-switching code when switching away from the map view.

static init()

Initializes the statusbar system Called after IITC boot process is complete

static renderTemplate(template, replacements) → {string}

Renders a template string by replacing placeholders with actual values.

Parameters:
Name Type Description
template string

Template string with placeholders in format {{ name }}

replacements Object

Key-value pairs where keys match placeholder names

Returns:
string -

Rendered HTML with placeholders replaced by values

Example
// Returns: "<span>Hello World</span>"
IITC.statusbar.renderTemplate("<span>{{ greeting }}</span>", { greeting: "Hello World" });

static show()

Shows the statusbar (pane-level visibility). Called by pane-switching code when the map view is active.