/** * Adds the given data to the given form by inserting hidden inputs. * * @method addInputs * @global * @memberof bbn.fn * * @example * ```javascript * let o = {name: "Smith", fname: "John"}; * bbn.fn.addInputs(document.getElementById('myform'), o, 'bbn'); * // Will write at the end of the given form: * // * // * * ``` * * @example * ```javascript * let o = { * People: [ * {name: "Smith", fname: "John"}, * {name: "Smith", fname: "Eileen"} * ], * Dates: ['2021-08-25', '2021-09-06'] * }; * bbn.fn.addInputs(document.getElementById('myform'), o); * // Will write at the end of the given form: * // * // * // * // * // * // * ``` * * @param {HTMLElement} form The form to which the inputs should be added * @param {Object} params The data which will be added * @param {String} prefix The optional object's name of the fields in the form * @returns {undefined} */ export default function addInputs(form: any, params?: any, prefix?: string): void;