简体   繁体   English

角引导日期时间选择器禁用“时间”

[英]Angular bootstrap datetimepicker disable “time”

I am using Angular bootstrap datetimepicker: https://dalelotts.github.io/angular-bootstrap-datetimepicker/ 我正在使用Angular bootstrap datetimepicker: https : //dalelotts.github.io/angular-bootstrap-datetimepicker/

I am going to disable "time", want to enable only date. 我要禁用“时间”,只想启用日期。 I am using this option: 我正在使用此选项:

<datetimepicker ng-model="pageData.currentNote.date" data-datetimepicker-config="{ dropdownSelector: '#dropdown', startView:'day', minView:'day' }"></datetimepicker>

Time select Panel is removed , but I am getting time field: 时间选择面板已删除,但我正在获取时间字段:

Thu Sep 07 2017 00:00:00 GMT-0400 (EDT) 2017年9月7日星期四00:00:00 GMT-0400(EDT)

I don't want time field. 我不要时间字段。 Any solution to remove this? 任何解决方案,以删除此?

This control you have selected looks like a date time picker specific to its function of selecting a date and then a time. 您选择的控件看起来像是日期时间选择器,特定于其选择日期然后选择时间的功能。

You should really look into https://angular-ui.github.io/bootstrap/ and specifically https://angular-ui.github.io/bootstrap/#!#datepicker 您应该真正查看https://angular-ui.github.io/bootstrap/ ,特别是https://angular-ui.github.io/bootstrap/#!#datepicker

This is a great toolset to use for Angular 1 这是用于Angular 1的出色工具集

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM