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(name, img, themeableopt, setSvgPropsopt, stylesopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
string | |||
img |
HTMLImageElement | |||
themeable |
boolean |
<optional> |
If truthy, the image will be themed by |
|
setSvgProps |
function |
<optional> |
svgThemer.setSvgProps | Optional custom theming code for this image and the rules implied by |
styles |
boolean | Array.<string> |
<optional> |
Optional list style names with which to create CSS rules.
For each rule thus created:
|
(static) checkbox(state) → {HTMLImageElement}
Convenience function.
Parameters:
Name | Type | Description |
---|---|---|
state |
boolean |
Returns:
- 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
(static) setTheme(theme)
Parameters:
Name | Type | Description |
---|---|---|
theme |
object |