React DateRangeBox - Control the Behavior

The DateRangeBox UI component allows users to type dates or pick them from a dropdown. The dropdown can display a single-month or two-month calendar. To use a single-month calendar, disable the multiView option. You can also specify whether date selection should take effect instantly or after a user clicks Done. Use the applyValueMode property.

App.js
  • import React from 'react';
  •  
  • import 'devextreme/dist/css/dx.fluent.blue.light.css';
  •  
  • import DateRangeBox from 'devextreme-react/date-range-box';
  •  
  • export default function App() {
  • return (
  • <DateRangeBox
  • multiView=false
  • applyValueMode="useButtons" // or "instantly"
  • />
  • );
  • }
See Also