This commit is contained in:
Kovid Goyal 2018-01-16 15:46:31 +05:30
parent 7b3be8ed38
commit 1117ae2b59
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -25,10 +25,11 @@ def set_default_panel_handler(handler):
default_panel_handler = handler
def develop_panel(container):
def develop_panel(container_id):
# To use, go to URL:
# http://localhost:8080/?panel=develop-widgets&widget_module=<module name>
# http://localhost:8080/#panel=develop-widgets&widget_module=<module name>
# Implement the develop(container) method in that module.
container = document.getElementById(container_id)
q = get_current_query()
m = q.widget_module
if m: