Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Is config really working in Ext or not?

  1. #11
    Sencha Premium User
    Join Date
    Jul 2013
    Posts
    15

    Default Sure there be a base "template" class everyone can use to support it?

    I think it would be nice if ExtJS could provide out of the box a DefaultBase class like this one:
    https://fiddle.sencha.com/#fiddle/4cv
    The concept of having a default config to your class while taking into consideration the ancestor classes parents AND getting all the getters/setters/apply/resets, seems to be a pretty reoccurring pattern.

  2. #12
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Raleigh, NC
    Posts
    448
    Answers
    23

    Default

    Not a bad idea at all, and I use something similar myself. The only tweak I would make is doing an applyIf() instead of apply(), since IMO it's a bit dangerous to just stomp on the existing config by default. But that may just be me being cautious.

    That said, I have to think there's SOME reason why Sencha's Base class doesn't do this. I admit I don't know what reason they might have for the current behavior, but it could easily be something we're not considering (or even aware of).

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •