Add UI button registration API (registerButton, unregisterButton, getButtonsForLocation)
This commit is contained in:
7
dist/PluginContext.js
vendored
7
dist/PluginContext.js
vendored
@@ -40,6 +40,13 @@ export function createPluginContext(options, registry) {
|
||||
unregisterRenderer: (type) => {
|
||||
registry.unregisterRenderer(type);
|
||||
},
|
||||
registerButton: (button) => {
|
||||
registry.registerButton(pluginId, button);
|
||||
registry.addLog(pluginId, 'log', [`Registered button: ${button.id} at ${button.location}`]);
|
||||
},
|
||||
unregisterButton: (buttonId) => {
|
||||
registry.unregisterButton(pluginId, buttonId);
|
||||
},
|
||||
},
|
||||
settings: {
|
||||
define: (schema) => {
|
||||
|
||||
Reference in New Issue
Block a user