uib-datepicker-popup 日期不可輸入 只能夠選擇 :readonly="true"

<div name="{{property.name}}" style="display: flex" ng-switch-when="date">
                    <input type="text" class="form-control" uib-datepicker-popup="dd/MM/yyyy" ng-model="property.value" is-open="property.opened" datepicker-options="{minMode: 'day'}"
                           datepicker-mode="'day'" placeholder="{{'COMMON.INPUT_TIP' | translate : property.tip }}" current-text="{{'CALENDAR.TODAY' | translate }}"
                           clear-text="{{'CALENDAR.CLEAR' | translate }}" close-text="{{'CALENDAR.DONE' | translate }}" readonly="true"/>
                    <span>
                        <button type="button" class="btn btn-default" ng-click="open(property)"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
相關文章
相關標籤/搜索