* @param {Widget} parent * @param {Object} [options] * @param {string} [options.title=Odoo] * @param {string} [options.subtitle] * @param {string} [options.size=large] - 'extra-large', 'large', 'medium' * or 'small' * @param {boolean} [options.fullscreen=false] - whether or not the dialog * should be open in fullscreen mode (the main usecase is mobile) * @param {string} [options.dialogClass] - classtoaddtothemodal-body * @param{jQuery} [options.$content] * Element which will be the $el, replace the .modal-body and get the * modal-body class * @param {Object[]} [options.buttons] * List of button descriptions. Note: if no buttons, a "ok" primary * button is added to allow closing the dialog * @param {string} [options.buttons[].text] * @param {string} [options.buttons[].classes] * Default to 'btn-primary'if only one button, 'btn-secondary' * otherwise * @param {boolean} [options.buttons[].close=false] * @param {function} [options.buttons[].click] * @param {boolean} [options.buttons[].disabled] * @param {boolean} [options.technical=true] * If set to false, the modal will have the standard frontend style * (use this for non-editor frontend features) * @param {jQueryElement} [options.$parentNode] * Element in which dialog will be appended, by default it will be * in the body * @param {boolean|string} [options.backdrop='static'] * The kind of modal backdrop to use (see BS documentation) * @param {boolean} [options.renderHeader=true] * Whether or not the dialog should be rendered with header * @param {boolean} [options.renderFooter=true] * Whether or not the dialog should be rendered with footer * @param {function} [options.onForceClose] * Callback that triggers when the modal is closed by other means than with the buttons * e.g. pressing ESC