Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

How to use RegisterCommand? #18

Open
dakuenjery opened this issue May 30, 2020 · 0 comments
Open

How to use RegisterCommand? #18

dakuenjery opened this issue May 30, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@dakuenjery
Copy link

I'm trying to add a new command.
I try
RegisterCommand(name="newcmd" :config="{}" :behaviour="() => console.log('CLICK!')" extend="")
but it's not working, function is not invoked and 'CLICK' is not showed in the browser console.
The documentation does not describe how to add a new command, which fields the config object should contain and demo don't use RegisterCommand.
Can you provide a working example, please?

@dakuenjery dakuenjery added the bug Something isn't working label May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant