Follow useCommandsButtons. pattern createCommandButtonSet
Use ProviderContext or just set a singleton. (research why/which)
Register icon, label, description { commandManager.createButton( commands.getCommand('formatAlignLeftToggle'), CommandButtonType.TOOLBAR ) }
Register factory for each type of Command Register configuration for each key
When registering to a component also
Suitable for menus. HoverIn to open, hover leave to close, generally disabled as icon and text
Suitable for toolbars. Click to open, click to close, generally disabled as icon
Follow useCommandsButtons. pattern createCommandButtonSet
Use ProviderContext or just set a singleton. (research why/which)
Register icon, label, description { commandManager.createButton( commands.getCommand('formatAlignLeftToggle'), CommandButtonType.TOOLBAR ) }
Register factory for each type of Command Register configuration for each key
When registering to a component also