You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ryc O'Chet edited this page Feb 1, 2018
·
1 revision
- NOTE: This documentation is for Velocity v2.
Command - RegisterAction
New commands are registered via this command. The command must be a function that takes an array of arguments provided to the command in use, an array of elements, a PromiseHandler, and a string command name. When a command is registered it must be given a string name, but when it is called it may be called with that name as a prefix, followed by a dot, then some other text. If your command supports this then this allows you to manage that. You may return anything you wish from the callback itself, and that will be returned to the user.
For more use of this it is recommended to check the source.