Methods
addAction
- addAction(action: Action): void
loadFromJson
- loadFromJson(json: any, options?: IOptions): void
processEvent
- processEvent(ev: KeyboardEvent): void
removeAction
- removeAction(action: Action): void
subscribe
- subscribe(actionName: string, cb: Function): void
-
Parameters
-
actionName: string
-
cb: Function
Returns void
unsubscribe
- unsubscribe(actionName: string, cb?: Function): void
-
Parameters
-
actionName: string
-
Optional cb: Function
Returns void