Highstock + Bootstrap datepicker

三世轮回 提交于 2020-03-04 05:21:33

问题


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

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.


回答1:


try this

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


来源:https://stackoverflow.com/questions/24450249/highstock-bootstrap-datepicker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!