Premium support for our pure JavaScript UI components


Post by henrique »

I'm trying to override the model implementation, but it never calls my functions. What am I doing wrong?

class ModelOverride
{
   static get target() {
      return {
         class: Model
      }
   }

   flatGet(fieldname, dataSource) {
      if (dataSource.indexOf('.') > -1)
         return complexGet(fieldname, dataSource);
      else
        this._overridden.flatGet.call(this, fieldname, dataSource);
   }
}

Post by tasnim »

Hi,
Have you applied the override?
Like this:

Override.apply(ModelOverride);

Post Reply