Hello,
I would like to allow users to copy and paste panels from one dashboard to another.
I have written some custom logic that swaps out the template variables used in the dashboard & panel for the selected values, so that when a user copies the panel, they won’t need to re-define the variables again.
The only issue I have is that when copying the panel data the Paste panel
option in the Add
menu appears disabled. I have tried the following:
- Copying the data to my clipboard
- Calling the CopyPanelEvent class (this does nothing it seems)
- Looking through the docs to see how I can call the
onCopyPanel
function (not exposed). - Looking at the HTTP API docs to see how I can trigger this to be enabled.
Is this possible currently?