Hi!
I'm using https://www.bryntum.com/docs/gantt/api/Core/mixin/Override to apply new methods on existing classes. Works fine, but apparently I cannot add methods. Here's a use case:
class TemplateColumnOverride {
static get target() {
return {
class : TemplateColumn,
product : 'grid',
minVersion : '1.0',
maxVersion : '1.5'
}
}
renderer(renderData) {
// call overridden function (optional)
const value = this._overridden.renderer.call(this, renderData);
const colors = this._getUsedColors(); // this._getUsedColors is undefined
const tables = this._getSquareTables(); // this._getSquareTables is undefined
this._applyNewColorsToTables(colors, tables); // this._applyNewColorsToTables is undefined
return 'HELLO' + value;
}
_getUsedColors() {
// 15 lines of code here
}
_getSquareTables() {
// 10 lines of code here
}
_applyNewColorsToTables(colors, tables) {
// 15 lines of code here
}
}
Override.apply(TemplateColumnOverride);
What would be the best way to do this?