我将singleClickEdit属性设置为true,以允许单击开始编辑单元格,而不是双击。仍然我无法在单击上进行编辑,而只能在双击上进行编辑。 您能否提出解决方案?
<ag-grid-angular style="width: 100%; height: 400px;"
(gridReady)="onGridReady($event)"
class="ag-theme-fresh ag-theme-promotion-grid common-grid-css ag-grid-padding"
[columnDefs]="columnDefs"
(cellValueChanged)="onCellValueChanged($event)"
[frameworkComponents]="frameworkComponents"
[rowData]="rowData"
[defaultColDef]="defaultColDef"
[suppressMovableColumns]="true"
[suppressContextMenu]="true"
[singleClickEdit]="true"
[overlayLoadingTemplate]="overlayLoadingTemplateFinaliseGrid"
[overlayNoRowsTemplate]="overlayNoRowsTemplate"
[rowClassRules]="rowClassRules"
[suppressScrollOnNewData]="true"
[stopEditingWhenGridLosesFocus]="true"
[suppressColumnVirtualisation]="true">
</ag-grid-angular>