uib-datepicker-popup使用
属性 | 默认值 | 备注 |
alt-input-formats | [] | 手动输入日期时可接受的格式 |
clear-text | clear | 清空按钮的文本 |
close-on-date-selection | true | 选择一个日期后是否关闭日期面板 |
close-text | close | 关闭按钮的文本 |
current-text | today | 今天按钮的文本 |
datepicker-append-to-body | false | 是否将日期面板放在body元素中 |
datepicker-options | | 对Datepicker控件的配置 |
datepicker-popup-template-url | uib/template/datepickerPopup/popup.html | |
is-open | false | 是否显示日期面板 |
on-open-focus | true | 打开日期面板时是否获取焦点 |
show-button-bar | true | 是否在日期面板下方显示”今天”,”关闭”等按钮 |
type | text | 可以改为date|datetime-local|month,这样会改变日期面板的日期格式化。 |
popup-placement | auto bottom-left | 在位置前加一个auto,表示日期面板会定位在它最近一个可以滚动的父元素中.可以设置的位置有:top top-left top-right bottom bottom-left bottom-right left left-top left-bottom right right-top right-bottom |
uib-datepicker-popup | yyyy-MM-dd | 显示日期的格式。可使用的格式见上面的列表。 |