Constructor
new ArrowButton(container, activeImage, verbose)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
container |
HTMLElement | ボタンにしたい HTML 要素。 | |
activeImage |
string | ボタンが押された場合に表示する画像 URL。 | |
verbose |
boolean | false | デバッグメッセージを console.log で表示するか否か。 |
- Source:
Methods
isPressed() → {boolean}
ボタンが押されているか否か。
- Source:
Returns:
true: 押されている。 false: 押されていない。
- Type
- boolean