KeydownControl

KeydownControl

Класс управления панелью с помощью клавиш на клавиатуре.

Constructor

new KeydownControl(mainDiv, actionFn)

Parameters:
Name Type Description
mainDiv JQuery

элемент, в котором располагается панель. Должен содержать класс rb-wrapper.

actionFn function

функция, определяющая действие при переходе в одну из сторон (Moving.prototype._moveByActionValue)

Source:

Extends

Methods

configure(config)

Применить конфигурацию. Учитывает опции leftKey, topKey, rightKey, bottomKey.

Parameters:
Name Type Description
config Moving~config
Overrides:
Source:

destroy()

Overrides:
Source:

disable()

Overrides:
Source:

enable()

Overrides:
Source:

isEnable() → {boolean}

Overrides:
Source:
Returns:
Type
boolean