From c6e7b93caf7a56e6586513a6755d18394850986a Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Tue, 16 Feb 2021 14:21:05 +0000 Subject: [PATCH] Apply 4 suggestion(s) to 1 file(s) --- src/core/js/form_elements.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/js/form_elements.js b/src/core/js/form_elements.js index 73260155..8fe0af4b 100644 --- a/src/core/js/form_elements.js +++ b/src/core/js/form_elements.js @@ -335,6 +335,7 @@ var form_elements = new function () { * parameter which is an entity in HTML representation. * @param {boolean} [multiple] - whether the select allows multiple * options to be selected. + * @param {string} name - the name of the select element * @returns {HTMLElement} SELECT element with entity options. */ this.make_reference_select = async function (entities, make_desc, @@ -428,7 +429,7 @@ var form_elements = new function () { } /** - * Call a server-side script with the content a the given form and + * Call a server-side script with the content of the given form and * return the results. * * Note that the form should be one generated by this form_elements @@ -872,7 +873,7 @@ var form_elements = new function () { * Create a form. * * The returned element is a container which contains a HTML form element. - * The fields are ready or the will emit a {@link field_ready_event} when + * The fields are ready or they will emit a {@link field_ready_event} when * they are. * * @param {FormConfig} config @@ -1548,6 +1549,10 @@ var form_elements = new function () { * * @param {object} config - config object with `name`, `type` and * optional `label` + * @param {string} input - optional specification of the HTML input element. + * `<input class="form-control caosdb-f-property-single-raw-value" type="' + type + '" name="' + name + '" />` + * is used as default where `name` and `type` stem from the config + * object. * @returns {HTMLElement} a form field. */ this._make_input = function (config, input) { -- GitLab