Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

382
Views
Ag Grid Cell Render property does not exist

I am trying to implement myown cell renderer following this example https://www.ag-grid.com/javascript-data-grid/cell-rendering/ , but in typescript . When I declare a class which implements ICellRenderer interface and try to implement the inteface methods I get a compile time error "Property 'eGui' does not exist on type 'MessageCellRenderer'."

This is part of my ts file where I define the renderer as well as the view which contains the grid. NOTE: The grid displays fine without the cell renderer but I need to style the cells based on displayed values , hence trying to use the cell render.

import {ErrorFilterView} from "./error-dialog/error-filter-view";
import {ICellRenderer} from 'ag-grid-community/main';

var agGrid = require('../../../../node_modules/ag-grid-community');

class MessageCellRenderer implements ICellRenderer{
  
  init(params) {
    this.eGui = document.createElement('span');
    if (params.value !== '' || params.value !== undefined) {
      this.eGui.innerHTML = `'<span class="error_read_#: params.value# error-item_#: Id#">#:Message#</span>'`;
    }
  }

   // gets called once when grid ready to insert the element
   public getGui() {
    return this.eGui;
  };

  // gets called whenever the user gets the cell to refresh
   public refresh(params) {
     // set value into cell again
     this.eValue.innerHTML = params.value;
   };

 // gets called when the cell is removed from the grid
 public destroy() {
   // do cleanup, remove event listener from button

  };
}

export var NotificationsDialogView = (viewModel : ErrorDialogViewModel) => {
  if (!viewModel.getIsInitialized()) return;

  var messageGrid: any;
  var config = (element : any, isInitialized : boolean, context : any) => {

    mdlInit(element, isInitialized, context);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Figured this out - just needed to add the required variable definitions as the example was using javascript as opposed to typescript which is a strongly typed (kind of) languauge

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!