问题标签 [bootstrap-datetimepicker]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
forms - Bootstrap datetimepicker 和 ExpressionEngine 频道表单模板标签的问题
当我将 Bootstrap datetimepicker(这个:https ://github.com/Eonasdan/bootstrap-datetimepicker )放置在我的网站上使用 {exp:channel:form} 标签提交数据的表单中时,我遇到了问题提交时。
datetimepicker 不会触发;起初我认为这只是一个 CSS 问题,这意味着它不可见,但经过大量测试后,我发现 datetimepicker 可以很好地处理页面上的所有 HTML 和 CSS,只有当我包装表单字段时在它停止工作的 {exp:channel:form} 模板标签中。
查看此模板标签输出的源代码,我进一步缩小了导致 datetimepicker 停止工作的代码:
删除此脚本会导致 datetimepicker 再次工作。
我仍然需要包含 {exp:channel:form} 标记,以便我的表单正常工作,但也希望 datetimepicker 工作。有没有人看到同样的问题?谁能建议我在 EE 中可以做什么来修改这个脚本,或者它实际上做了什么?
我在用:
- 表达式引擎 2.7.3
- bootstrap.js(v3.1.1 作为更新的 v3.2.0 导致 datetimepicker 停止工作)
- bootstrap-datetimepicker.js (v.3.1.3)
- moment.js (v2.8.1)
我知道这些脚本的顺序很重要,正如我所说,如果没有上面由 {exp:channel:form} 标签输出的违规脚本,datetimepicker 可以 100% 工作!
非常感谢,罗布
twitter-bootstrap - Bootstrap datetimepicker 没有以正确的格式检索
我正在使用BootstrapDateTimePicker
它,它确实选择了所需格式的日期/时间,但是当我检索数据时,它不显示时间,它只显示日期。
网页:
当我从 datetimepicker 中选择时,它将日期/时间显示为“ DD/MM/YYYY hh:mm A ”,但是当它检索日期(从数据库中)时,它只显示这种格式的日期“ DD/MM/YYYY ”没有时间。
为什么会这样?
javascript - bootstrap-datepicker 全局设置语言
我正在使用内部使用bootstrap-datepicker的 bootstrap-datepaginator。使用 bootstrap-datepicker 作为单个组件,设置语言没有问题,但使用 bootstrap-datepaginator 则不是这样。我能怎么做?
我正在尝试将意大利语设置为整个项目的默认设置。在index.html
我放了以下脚本:
但是在控制台中我得到了这些错误:
我尝试了一切,但我要疯了!
我以这种方式更改了代码:
但现在错误如下:
有了这个修复:
我在控制台中没有错误,但默认情况下语言总是英语
jquery - 使用 Bootstrap datetimepicker 时放置 jQuery 的位置
我在用着Bootstrap 3 datetimepicker,并且从作者的示例中,作者将 jQuery 放在标题中,然后在日期时间输入之后放置 javascript。
然而,我读了一些帖子,建议所有脚本都应该最后加载。但是如果我最后放置 jQuery,datetimepickers 将无法工作(因为 jQuery 没有加载,一个
javascript 未捕获的引用错误
将被报告)。
我只是想知道使用 Bootstrap datetimepicker 的最佳实践是什么?
asp.net-mvc - bootstrap datetime picker is not binding the angular model
I'm facing a strange issue. I'm currently using a customized Date Picker and DateTime picker. The first one is working correctly (data is binded) , the second not (nothing is binded).
Date Picker Helper extension :
Date Picker html using :
So this part is working ... task.StartDate returns a value and the validation is working.
Now the DateTime picker , which is almost the same :
DateTime picker helper extension :
DateTime Picker html using :
Visual result :
As you can see the {{meeting.StartDate}} returns nothing. I tried a lot of things but it seems that the picking is not firing the binding ... while it's working with the date picker. Strange...
javascript - 将 Bootstrap-datTimePicker 与 Backbone-forms 一起使用
我正在使用 bootstrap-dateTimePicker 在 Backbone-forms 中添加自定义编辑器。但是我得到了错误:
自定义字段:
我认为这与缺少的“附加”类有关!
在渲染中添加了这一行但没有新内容
请问如何自定义该字段的模板。
谢谢,
jsp - 没有时间请求的引导 datetimepicker
我有这个 jsp 代码(由http://eonasdan.github.io/bootstrap-datetimepicker/ 获取)
我的controller.js中的这段代码:
我不要时间!我希望数据选择器只询问日期,但不询问。
datetimepicker - 如何在 datetimepicker 中仅显示/显示日期值
绑定数据时如何在引导日期时间选择器中仅显示/显示日期值。我已将日期格式设置为“DD/MM/YYYY”
并且还用数据类型 date 修饰了 viewmodel 属性。
但是当绑定日期时,文本框控件会显示时间(12:00:00 am)组件以及日期。
1945 年 11 月 19 日上午 12:00:00
任何帮助表示赞赏。
javascript - Issue in using bootstrap datetime picker with bootstrap 3.3
I'm new in using bootstrap, I want to use Thiago de Arruda's plugin for datetimepicker in my app, but it is using bootstrap-2.2 version (bootstrap.2.2 JS and bootstrap-combined.2.2.css) and my app is using Ver 3.3 bootstrap.
When I used latest bootstrap libraries(Ver3.3) ; plugin is not working and not rendering calender view just displaying an empty input box.
When I tried with new bootstrap.3.3.js & bootstrap-combined.2.2.css it partially working.
I know Bootstrap 3 Migration Guide need to apply for upgradation but it will be huge task for me.
Does any one knows how to fix it? or any references?
Thanks in advance .. :)