import DateRangePickerOptions from '~/interfaces/DateRangePickerOptions'; /** * Initialize date range picker. * @param {string|HTMLInputElement} element CSS selector string or HTMLInputElement. * @param {string} options.minDate? The earliest date a user may select. Default is none (undefined). * @param {string} options.maxDate? The latest date a user may select. Default is none (undefined). * @param {number} options.maxDays? Maximum number of days that can be selected. Default is indefinite (undefined). * @param {string} options.locale? Language Code (ja, en, etc.). Default is none (undefined). * @param {string} options.format? Date Format. Default is 'YYYY/M/D'. * @param {string} options.language.applyLabel? Apply button text. Default is 'Apply'. * @param {string} options.language.cancelLabel? Cancel button text. Default is 'Cancel'. * @param {boolean} options.autoUpdateInput? Indicates whether the date range picker should automatically update the value of the element it's attached to at initialization and when the selected dates change. Default is true. * @return {daterangepicker} daterangepicker instance. * @example * HTML: * ```html * *
* * * * * * *
* * ``` * * JS: * ```js * import {initializers} from 'metronic-extension'; * * // Initialize date range picker. * const dateRangePicker = initializers.initDateRangePicker(document.getElementById('dateRangePicker'), { * minDate: moment().format('YYYY/M/D'), * maxDate: moment().endOf('month').format('YYYY/M/D'), * maxDays: 7, * locale: 'en', * format: 'YYYY/M/D', * language: { * applyLabel: 'OK', * cancelLabel: 'Cancel', * } * }); * ``` */ declare const _default: (element: string | HTMLInputElement, options?: DateRangePickerOptions) => daterangepicker; export default _default;