1

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.

4

1 回答 1

2

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);
于 2014-09-05T07:09:18.663 回答