I am using renderers on my column data that gets displayed. Is there a way to access the class variable inside the renderers?
public class ABC {
accessThisVariable = true;
this.columns[
{ data: ‘id’, type: ‘text’, renderer: this.dataRenderer},
{ data: ‘name’, type: ‘text’, renderer: this.dataRenderer}
]
dataRenderer(instance, td, row, col, prop, value, cellProperties) {
Handsontable.renderers.TextRenderer.apply(this, arguments);
// access here the class variable ‘accessThisVariable’
}
}