是否可以在bsdatepicker中使用占位符 使用 在输入中键入=“ button”
<input class="datepicker-input" #dp="bsDatepicker"
[bsConfig]="bsConfig"
[bsValue]="bsValue"
[container]="container"
[maxDate]="maxDate"
[minDate]="minDate"
[outsideClick]="outsideClick"
[isDisabled]="isDisabled"
[isOpen]="isOpen"
[triggers]="triggers"
[placement]="placement"
[placeholder]="placeholder"
type="button"
nbInput
(bsValueChange)="onValueChange()"
bsDatepicker>
答案 0 :(得分:0)
在输入中添加值的额外属性。选择日期后,它将自动更改。
<input class="datepicker-input" #dp="bsDatepicker"
value="Select date"
[bsConfig]="bsConfig"
[bsValue]="bsValue"
[container]="container"
[maxDate]="maxDate"
[minDate]="minDate"
[outsideClick]="outsideClick"
[isDisabled]="isDisabled"
[isOpen]="isOpen"
[triggers]="triggers"
[placement]="placement"
[placeholder]="placeholder"
type="button"
nbInput
(bsValueChange)="onValueChange()"
bsDatepicker>
答案 1 :(得分:0)