title: Angular ag-Grid: how to refresh param value in custom cell renderer that is passed from the parent component?
body: <p>I have my custom cell renderer for the editing menu:</p>
  
  <p><a href="https://i.stack.imgur.com/Lw55y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lw55y.png" alt="enter image description here"></a></p>
  
  <p>To the renderer component I'm passing <code>isEditing</code> value, because when user click on Edit, then </p>
  
  <pre><code>agInit(params: ICellRendererParams) {
   this.params = params;
   this.data = params.data;
   this.isEditing = this.params.isEditing;
  }
  </code></pre>
  
  <p>And in template:</p>
  
  <pre><code>&lt;ng-container *ngIf="!isEditing"&gt;
  HERE IS MENU ICON VIEW
  &lt;/ng-container&gt;
  &lt;div *ngIf="isEditing" class="d-flex justify-content-center align-items-center"&gt;
    &lt;button type="button" class="btn btn-primary m-1" (click)="onSave()"&gt;{{'shared.save' | translate}} 
    &lt;/button&gt;
    &lt;button type="button" class="btn btn-secondary m-1" (click)="onCancel()"&gt;{{'shared.cancel' | translate}}&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In my parent component where is the grid I have my column definition:</p>
  
  <pre><code>  headerName: '',
    cellRendererFramework: EditRendererComponent,
    cellRendererParams: {
      isEditing: this.isEditing
    }
  </code></pre>
  
  <p>The problem is I want to manage <code>isEditing</code> flag from the parent level. But when I start row edition onClick then <code>(rowEditingStarted)</code> is triggered and I'm changing the flag:</p>
  
  <pre><code>{
  this.isEditing = true;
  this.gridApi.refreshCells({force: true});
  }
  </code></pre>
  
  <p>As you can see, I tried to use <code>refreshingCells</code> method from gridApi but it doesn't help me. Maybe on of you have some idea to handle this?</p>