Ag Grid -CellEditor FocusOut
当CellEditor失去焦点时,我想调用
app.component.ts
1 2 3 | onFocusOut(): void { this.params.api.stopEditing(); } |
app.component.html
1 2 3 4 5 6 | <input #container triggers="" type="text" #dp="bsDatepicker" class="form-control" (bsValueChange)="onValueChange($event)" bsDatepicker [bsConfig]="{ dateInputFormat: 'DD.MM.YYYY', containerClass: 'theme-dark-blue' }" [(ngModel)]="dateValue" [minDate]="minDate" [maxDate]="maxDate" (focusOut)="onFocusOut()"> |
但是,不会触发focusOut。 知道为什么不触发吗?
它不是
有关更多参考,请查看本文的答案:使用angular 2的HTML5事件处理(onfocus和onfocusout)