You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.5 KiB

https://demo.commandbar.com/

-> go to actions -> entries from config menu -> entries from main menu -> configurations from adminhtml -> context-aware actions -> product -> grid -> config? -> switch store

-> reminders or other quick actions with hotkey

SDK: window.CommandBar.addCommand

To better understand programmatic commands, you can also try the following: open the Editor, click the three dots next to a command, and select Copy code. addCommand returns a promise, so you if you need to wait for it to complete, you can use await window.CommandBar.addCommand(...).

Command action types

There are currently four different command action types:

Link: open a static or dynamic link
Callback: run a provided javascript function
Click: simulate a click or series of clicks in the DOM
Webhook: POST to a provided API endpoint

Context

Supply a search function: https://www.commandbar.com/docs/context/adding#supply-a-search-function-(records-only)

https://www.commandbar.com/docs/context/search#option-3:-connect-to-an-existing-search-endpoint

Test

Test mode https://www.commandbar.com/docs/commands/overview#testing-commands

Login

Opengento c'est trop beau !

TODO

  • customize user window.CommandBar.boot(userid)
  • make it work with session key