singleClickEdit在ag-grid-angular中不起作用

时间:2019-11-26 17:00:15

标签: angular ag-grid

我将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> 

0 个答案:

没有答案