简体   繁体   English

Tempusdominus datetimepicker 打开方向

[英]Tempusdominus datetimepicker open direction

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/使用版本: 5.0.1 https://tempusdominus.github.io/bootstrap-4/

You can use widgetPositioning option您可以使用 widgetPositioning 选项

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM