You can clone with
I tried adding some inline code to do this (although I don't think that's optimal in the longer term and it won't allow me to bundle icons.) However, it seems that I can't interface with jQuery from my panel template ($ and jQuery aren't available in the namespace).
Is there a way to interface with jQuery and bundle custom scripts with the code as it stands? If not, perhaps we could devise an extension mechanism allowing plugins to carry their own static files. Have you thought about this?
There's a bit more to this ticket than what the description says :)
To make this work, we'll have to figure out why jQuery isn't accessible in the global namespace. The situation is quite different after #440.
If we can do this for the built-in panels, it should work just as well for third-party panels.
PS: please submit a pull request to get listed on http://django-debug-toolbar.readthedocs.org/en/latest/panels.html#third-party-panels!
Now, we could define and document the toolbar JS API.
This ticket is resolved, I've filed #484 for the task described in my previous comment.