Highstock + Bootstrap datepicker [英] Highstock + Bootstrap datepicker

查看:195
本文介绍了Highstock + Bootstrap datepicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题与这里一样:
Highstock日期输入jquery ui datepicker位置更改

My question is the same as the one here: Highstock date input jquery ui datepicker position changes

但是我使用的是Bootstrap datepicker而不是jQuery。我注意到它有(显示,...),on(隐藏...)而不是beforeShow,onClose分别。但是后来我真的不知道如何改变自己的身体,使用我的datepicker。

But I'm using Bootstrap datepicker instead of jQuery. I noticed it has on("show", ... ), on("hide" ...) instead of beforeShow, onClose respectively. But then I don't really know how to change their bodies to work with my datepicker.

推荐答案

尝试这个

        setTimeout(function () {
            $('input.highcharts-range-selector', $(chart.container).parent())
                .datepicker({
                format: "dd/mm/yyyy",
                todayBtn: "linked",
                orientation: "auto left",
                autoclose: true,
                todayHighlight: true
            });
        }, 0);

这篇关于Highstock + Bootstrap datepicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆