diff --git a/src/core/js/form_elements.js b/src/core/js/form_elements.js index 73260155a67da9095a42842a3062fc52347d1278..8fe0af4ba633aaf257c48dd3e40ee22f4a8fc3c5 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) {