This page includes two APIs:
registerConfigButton and registerConfigButtonListener. Call order: register the config button first (registerConfigButton), then listen for click events (registerConfigButtonListener).registerConfigButton
Register the plugin config button. After registration succeeds, the plugin management page will show the config button entry.Promise<boolean>: whether registration succeeds
registerConfigButtonListener
Listen for config button click events.| Parameter | Type | Description |
|---|---|---|
buttonListener | ConfigButtonListener | callback onClick() |
ConfigButtonSubscription: subscription object. Callremove()to unregister the listener
Type Definitions
ConfigButtonListener
onClick(): triggered when the config button is clicked
ConfigButtonSubscription
- Returned by
registerConfigButtonListener - Call
remove()to unregister the config button event listener