From fe53134ce504698291e653f827a0d778f4be40a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Tue, 4 Apr 2023 10:53:34 +0200 Subject: [PATCH] DOC: enhance docstring --- src/core/js/form_panel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/js/form_panel.js b/src/core/js/form_panel.js index a6c204d7..8b4fa4ed 100644 --- a/src/core/js/form_panel.js +++ b/src/core/js/form_panel.js @@ -66,6 +66,10 @@ var form_panel = new function () { /** * Creates a callback function that toggles the form panel which + * + * You may supply 'undefined' as form_config and use form_creator + * instead which is supposed to be a function without argument that + * return the form to be added to the panel */ this.create_show_form_callback = function ( panel_id, title, form_config, form_creator=undefined -- GitLab