diff --git a/singletree.py b/singletree.py index 544fcdd..f34f54a 100644 --- a/singletree.py +++ b/singletree.py @@ -55,6 +55,9 @@ ui_tmpl = """ "parentField":"{{parentField}}", "idField":"{{idField}}", "textField":"{{textField}}", +{% if typeField %} + "typeField":"{{typeField}}", +{% endif %} {% if params %} "params": {{json.dumps(params)}}, {% endif %}