Basic #

Regate.RegatePersianDateTimePicker.init({
  id: 'basic-example',
  name: 'Birthday',
})

Value #

Regate.RegatePersianDateTimePicker.init({
  id: 'value-example',
  name: 'Birthday',
  value: '1986/11/19',
})

Required #

Regate.RegatePersianDateTimePicker.init({
  id: 'required-example',
  name: 'Birthday',
  isRequired: true,
})

TimePicker #

Regate.RegatePersianDateTimePicker.init({
  id: 'timepicker-example',
  name: 'Birthday',
  hasTimePicker: true,
})

IsTimeFrom #

Regate.RegatePersianDateTimePicker.init({
  id: 'istimefrom-example',
  name: 'Birthday',
  isTimeFrom: true,
})

IsTimeTill #

Regate.RegatePersianDateTimePicker.init({
  id: 'istimetill-example',
  name: 'Birthday',
  isTimeTill: true,
})

IsNow #

Regate.RegatePersianDateTimePicker.init({
  id: 'isnow-example',
  name: 'Birthday',
  isNow: true,
})