From 016c085f87bdb52ed79e9304f32641be35ee0635 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Sat, 19 Mar 2022 00:14:51 +0100 Subject: [PATCH] doc: add raw notes --- notes.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 notes.md diff --git a/notes.md b/notes.md new file mode 100644 index 0000000..7772c93 --- /dev/null +++ b/notes.md @@ -0,0 +1,43 @@ +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 + +- All data added to context goes through the CommandBar.addContext SDK method. Here are two very basic examples of adding data to context. + https://www.commandbar.com/docs/context/overview + +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 !