Angular 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.component.html
app.component.ts
  • <dx-date-range-box
  • [multiView]="false"
  • applyValueMode="useButtons" // or "instantly"
  • ></dx-date-range-box>
  • import { DxDateRangeBoxModule } from "devextreme-angular";
  •  
  • export class AppComponent {}
  •  
  • @NgModule({
  • imports: [
  • // ...
  • DxDateRangeBoxModule
  • ],
  • // ...
  • })
See Also