0

Is there a way to open the datetimepicker under the input instead of opening it above of the input? I know there are some pickers that have it in the box but I did not find such an option in this one.

Using version: 5.0.1 https://tempusdominus.github.io/bootstrap-4/

Epsilon47
  • 768
  • 1
  • 13
  • 28
  • 1
    Every example on this page: https://tempusdominus.github.io/bootstrap-4/Usage/ opens under the input unless the input is close to the bottom of the viewport, in which case then it opens above it. – gforce301 Aug 29 '18 at 15:40
  • @gforce301 yeah, thanks. – Epsilon47 Aug 29 '18 at 15:55

1 Answers1

0

You can use widgetPositioning option

myDatetimeInput.datetimepicker({
    format: 'DD MMM YYYY HH:mm',
    widgetPositioning: {
        vertical: 'bottom', // always opens to buttom direction
    },
});