Options
The full option contract for each picker is typed in src/types.ts (DateTimePickerOptions, DateRangePickerOptions, MonthPickerOptions). The component pages have the complete per-picker option tables with defaults; this page covers the integration-level options that are easy to miss, plus how they interact.
Popup placement & portaling
appendTo— portals the popup DOM into a stable container, usuallydocument.body(default) or a modal element, so it isn't clipped by anoverflow: hiddenancestor.container— daterangepicker.js-compatible alias forappendToon the range and month pickers, kept for drop-in migration (see Migration).opens—'left' | 'right' | 'center' | 'auto', horizontal alignment relative to the input.drops—'down' | 'up' | 'auto', whether the popup opens below or above the input.
Locale & formatting
locale—'ne' | 'en', controls digit script and month names.displayFormat— dayjs-style tokens for what the input shows (e.g.YYYY-MM-DD[ HH:mm]). This is purely cosmetic and independent ofvalueFormat.
Decoupling display from submitted value
These three exist so a BS-mode, Nepali-digit picker can still hand your backend a clean value with zero conversion glue — see the README's Sending the right value to your backend section for the full writeup.
valueFormat—'iso' | 'iso-bs' | 'timestamp' | 'date-object' | { calendar, format }, the shape of the machine value ononChange/DOM events and written toaltField/submitName.submitName— injects a hidden<input name>(select2-style) carrying the machine value; on the range/month pickers this can be a single string ("start,end") or{ start, end }for two named fields.altField— jQuery-UI-style: write the machine value into an existing element/selector instead of creating a hidden input. Same string vs.{ start, end }shape assubmitName.altFormat— overrides the format used foraltField/submitNameonly, when the visible input and the submitted value need to differ fromvalueFormat.
Advanced overrides
adapter— swap the BS↔AD conversion engine (CalendarAdapter). Rarely needed; the built-in adapter is O(1) and validated against the official calendar for BS 1970–2100.dateMath— override the AD-side date math (range picker only).