src
directory.registerPlugin()
in the which register the plugin package.configure()
function. This function is called by the after the plugin has been loaded and registered successfully. As parameters you get a config
object which has all the methods you need to register components, commands, tools, keyboard shortcuts, translation labels and what not. In essences, the config
object is what allows you to define all the bits and pieces of your plugin and define where they should go in the .DevKitComponent
, which is added to the sidebar using config.addToSidebar()
. It also registers a translation label using config.addLabel()
.Component
from the substance
module which all UI components inherit from. It also imports a UIButton
and the api
from the writer
module.render()
method. See the DevKit skeleton for the complete source.