Module: images

This is a registry of HTMLImageIcon objects.

Hypergrid comes with a few images (see below).

Application developer is free to register additional image objects here (see add).

Members

(static) calendar

(static) checkbox-off

Synonym of unchecked (unaffected if unchecked overridden).

(static) checkbox-on

Synonym of checked (unaffected if checked overridden).

(static) checked

(static) filter-off

(static) filter-on

(static) unchecked

(static) up-down

Methods

(static) add(key, img)

Parameters:
Name Type Description
key string
img HTMLImageElement

(static) checkbox(state) → {HTMLImageElement}

Convenience function.

Parameters:
Name Type Description
state boolean
Returns:

checked when state is truthy or unchecked otherwise.

Type
HTMLImageElement

(static) filter(state) → {HTMLImageElement}

Convenience function.

Parameters:
Name Type Description
state boolean
Returns:

filter-off when state is truthy or filter-on otherwise.

Type
HTMLImageElement