diff --git a/src/moj/components/date-picker/date-picker.js b/src/moj/components/date-picker/date-picker.js index 5949c5fcd..28e9941f2 100644 --- a/src/moj/components/date-picker/date-picker.js +++ b/src/moj/components/date-picker/date-picker.js @@ -2,18 +2,18 @@ * Datepicker config * * @typedef {object} DatepickerConfig - * @property {string} [excludedDates] - Dates that cannot be selected - * @property {string} [excludedDays] - Days that cannot be selected + * @property {string} [excludedDates] - Dates that cannot be selected + * @property {string} [excludedDays] - Days that cannot be selected * @property {boolean} [leadingZeroes] - Whether to add leading zeroes when populating the field - * @property {string} [minDate] - The earliest available date - * @property {string} [maxDate] - The latest available date - * @property {string} [weekStartDay] - First day of the week in calendar view + * @property {string} [minDate] - The earliest available date + * @property {string} [maxDate] - The latest available date + * @property {string} [weekStartDay] - First day of the week in calendar view */ /** * @param {HTMLElement} $module - HTML element * @param {DatepickerConfig} config - config object - * @constructor + * @class */ function Datepicker($module, config = {}) { if (!$module) { @@ -251,7 +251,7 @@ Datepicker.prototype.toggleTemplate = function () { * HTML template for calendar dialog * * @param {string} [titleId] - Id attribute for dialog title - * @return {string} + * @returns {string} */ Datepicker.prototype.dialogTemplate = function (titleId) { return `