command-pal
command-pal copied to clipboard
Display palette method
This addresses #25.
I am not sure if it's the right way to get App and CommandPal to cooperate, but it works.
// Display the instance
c.displayPalette(true)
// Hide the instance
c.displayPalette(false)
// Toggle from display -> hide or hide -> display
c.displayPalette()
c.dispatch('close') maybe?
or a wrapper for it for opened/closed and to toggle.
c.dispatch('close') maybe?
or a wrapper for it for opened/closed and to toggle.
Yeah that would be nice to be able to send events to the Command Pal instance 🤔 Then we'd have c.subscribe('...') and c.dispatch(...)