Hello webix xperts !
What is the best approach to pass data to Pivot Grid custom backend ?
I have my own class which extends ‘pivot.services.Backend’
It works okay, I’ve already written ‘data()’ method which fills pivot with table.
So far, so good.
However, I would like to pass some data to pivot.services.Backend
I thought that instead of that:
const pivot = {
view:"pivot",
override: new Map([[pivot.services.Backend, ReportsPivotBackend]]),
structure: {}
};
I can do that:
const pivot = {
view:"pivot",
override: new Map([[pivot.services.Backend, new ReportsPivotBackend(someKindOfAdditionalData)]]),
structure: {}
};
But sadly this does’t work at all.
I get:
this.dynamic(...) is not a constructor