[英]How can I add custom buttons to bootstrap-datetimepicker?
I want to do a certain action when a button in bootstrap-datetimepicker widget is clicked but it seems we can't do so, thus I would like to add my custom buttons. 当我单击bootstrap-datetimepicker小部件中的按钮时,我想做一个特定的动作,但看来我们不能这样做,因此我想添加自定义按钮。
For example, I am using two fields and each of them is having the bootstrap-datetimepicker attached. 例如,我正在使用两个字段,每个字段都附加了bootstrap-datetimepicker。 Now what I want to do is if someone clicks on clear button in widget the time in both fields should get cleared.
现在,我想做的是,如果有人单击小部件中的清除按钮,则应该清除两个字段中的时间。
The tool I am making can be used to find time of any city in the world with respect to any particular city (for now its Pune, India). 我正在使用的工具可用于查找世界上任何城市相对于任何特定城市(现在是印度的浦那)的时间。
Interesting project. 有趣的项目。 To get what you want, get the bootstrap-datetimepicker sources and change it to fit your needs.
要获得所需的内容,请获取bootstrap-datetimepicker源,并对其进行更改以适合您的需求。 https://github.com/eternicode/bootstrap-datepicker
https://github.com/eternicode/bootstrap-datepicker
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.