Notice that you cannot enter a date with the keyboard.
dropdownSelector: '#dropdown1'
to toggle the dropdown.
Default configuration
data-on-set-time='inputOnTimeSet()'
to toggle the dropdown.
dropdownSelector: '#dropdown4'
to toggle the dropdown.
This example shows a date picker that has the required attribute. Note that the user must type into the input to toggle dirty/pristine.
dropdownSelector: '#dropdown5'
to toggle the dropdown.
Formatted Date: {{ data.linkCalendar | date:'medium' }}
startView: 'day'
and minuteStep: 15
data-on-set-time='checkboxOnTimeSet()'
to toggle visibility.
Formatted Date: {{ data.checkboxCalendar | date:'medium' }}
Click me to show/hide via ng-show:Default configuration
Formatted Date: {{ data.embeddedYear | date:'yyyy-MM-dd h:mm a' }}
This example shows a date picker that has the required attribute. Note that without an input, only validity is tracked by ngModel.
data-datetimepicker-config="config.datetimePicker"
which returns { startView: 'year' }
Formatted Date: {{ data.embeddedPropertyConfig | date:'yyyy-MM-dd h:mm a' }}
data-datetimepicker-config="configFunction()"
which returns { startView: 'month' }
Formatted Date: {{ data.embeddedFunctionConfig | date:'yyyy-MM-dd h:mm a' }}
data-on-set-time="guardianOnSetTime($index, guardian, newDate, oldDate)"