Search results

PresetDirective

‘e-presets’ directive represent a presets of angular daterangepicker It must be contained in a daterangepicker component(ej-daterangepicker).

<ejs-daterangepicker id='range'>
  <e-presets>
   <e-preset label='Last Week' [start]=new Date('06/07/2018') [end]= new Date('06/01/2018')></e-preset>
   <e-preset label='Last Month' [start]=new Date('06/07/2018') [end]= new Date('05/07/2018')></e-preset>
  </e-presets>
</ejs-daterangepicker>

Properties

end

any

Defines the end date of the preset range

label

any

Defines the label string of the preset range.

start

any

Defines the start date of the preset range.