Our blazing fast Grid component built with pure JavaScript


Post by henrique »

I need to create a custom DataField, how do I register it?

I did it that way, but it's not working.

class MyCustomField extends bryntum.grid.DataField
{
   static get $name()
   {
      return 'MyCustomField';
   }

   static get type()
   {
      return 'mycustomfield';
   }

   convert(value)
   {
      ...
   }

   print(value)
   {
      ....
   }
}

Post by mats »

You can check any existing Field to see how it's done, try adding:

MyCustomField.initClass();

Post by henrique »

I'm sorry, tiredness got in the way. Yes, I forgot about that, and I still had a writing problem in my code, so it didn't work.


Post by alex.l »

Hi henrique,

Do not hesitate to ask! If it's not related to this topic, create a new one.

All the best,
Alex


Post Reply